diff options
Diffstat (limited to 'src/pwd/getpwent.c')
-rw-r--r-- | src/pwd/getpwent.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pwd/getpwent.c b/src/pwd/getpwent.c index 675f8aa3..cdf20e8e 100644 --- a/src/pwd/getpwent.c +++ b/src/pwd/getpwent.c @@ -1,3 +1,8 @@ +#if ((!defined _POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 2)) +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 2 +#endif + #include <sys/types.h> #include <pwd.h> #include <stdlib.h> @@ -9,14 +14,11 @@ #include "_pwd.h" #ifndef LINE_MAX -#ifndef _POSIX2_LINE_MAX -#include "limits/_POSIX2_LINE_MAX.c" -#endif #define LINE_MAX _POSIX2_LINE_MAX #endif #ifndef _XOPEN_SOURCE - static +static #endif struct passwd * getpwent(void) |