aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/unix/getpwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/unix/getpwent.c')
-rw-r--r--newlib/libc/unix/getpwent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/unix/getpwent.c b/newlib/libc/unix/getpwent.c
index 5390c68..0f13a20 100644
--- a/newlib/libc/unix/getpwent.c
+++ b/newlib/libc/unix/getpwent.c
@@ -1,3 +1,5 @@
+#ifndef _NO_GETPWENT
+
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
@@ -125,3 +127,5 @@ endpwent ()
if (passwd_fp != NULL)
fclose (passwd_fp);
}
+
+#endif /* !_NO_GETPWENT */