about summary refs log tree commit diff
path: root/include/pwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pwd.h')
-rw-r--r--include/pwd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 38e856d3..fbdda3e7 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -9,6 +9,10 @@ extern "C" {
 #define __NEED_uid_t
 #define __NEED_gid_t
 
+#ifdef _GNU_SOURCE
+#define __NEED_FILE
+#endif
+
 #include <bits/alltypes.h>
 
 struct passwd
@@ -33,6 +37,7 @@ int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **)
 
 #ifdef _GNU_SOURCE
 char *getpass(const char *);
+struct passwd *fgetpwent(FILE *);
 #endif
 
 #ifdef __cplusplus