diff --git a/options/glibc/generic/shadow.cpp b/options/glibc/generic/shadow.cpp index 9ce6584664..ddc2a23b76 100644 --- a/options/glibc/generic/shadow.cpp +++ b/options/glibc/generic/shadow.cpp @@ -215,3 +215,8 @@ struct spwd *fgetspent(FILE *) { void endspent(void) { mlibc::infoLogger() << "mlibc: endspent is a stub" << frg::endlog; } + +struct spwd *sgetspent(const char *) { + __ensure(!"Not implemented"); + __builtin_unreachable(); +} diff --git a/options/glibc/include/shadow.h b/options/glibc/include/shadow.h index 58844589ef..508d346f63 100644 --- a/options/glibc/include/shadow.h +++ b/options/glibc/include/shadow.h @@ -32,6 +32,7 @@ struct spwd *getspnam(const char *__name); int getspnam_r(const char *__name, struct spwd *__sp, char *__buf, size_t __size, struct spwd **__res); struct spwd *fgetspent(FILE *__f); void endspent(void); +struct spwd *sgetspent(const char *__s); #endif /* !__MLIBC_ABI_ONLY */ diff --git a/options/glibc/include/sys/procfs.h b/options/glibc/include/sys/procfs.h index 82fee9a666..d19a03c86d 100644 --- a/options/glibc/include/sys/procfs.h +++ b/options/glibc/include/sys/procfs.h @@ -15,7 +15,7 @@ typedef unsigned long elf_greg_t; typedef elf_greg_t elf_gregset_t[ELF_NGREG]; typedef struct user_fpregs_struct elf_fpregset_t; -typedef struct user_regs_struct prgregset_t; +typedef elf_gregset_t prgregset_t; typedef struct user_fpregs_struct prfpregset_t; #define ELF_PRARGSZ 80