summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/pwd.h1
-rw-r--r--libc/pwd_grp/pwd_grp.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 23b4710c8..72475a61d 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -114,6 +114,7 @@ extern struct passwd *getpwuid (__uid_t __uid);
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern struct passwd *getpwnam (const char *__name);
+libc_hidden_proto(getpwnam)
#if defined __USE_POSIX || defined __USE_MISC
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c
index f5c22f885..0e7c7f73b 100644
--- a/libc/pwd_grp/pwd_grp.c
+++ b/libc/pwd_grp/pwd_grp.c
@@ -354,6 +354,7 @@ struct passwd *getpwnam(const char *name)
getpwnam_r(name, &resultbuf, buffer, sizeof(buffer), &result);
return result;
}
+libc_hidden_def(getpwnam)
#endif
/**********************************************************************/