diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-12-04 12:11:58 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-12-04 12:11:58 +0000 |
commit | 6c6c7bd07f3bcd44d8bb8294180510b4f29a0fef (patch) | |
tree | 019d4ae7de79700781cf52847bdf802fd672d904 /util-src | |
parent | 4d02538a3dd73f8f7f7c21d21aa3ffafecfd7a0c (diff) | |
download | prosody-6c6c7bd07f3bcd44d8bb8294180510b4f29a0fef.tar.gz prosody-6c6c7bd07f3bcd44d8bb8294180510b4f29a0fef.zip |
util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups()
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/pposix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c index 5c926603..169343b8 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -25,14 +25,18 @@ #define _DEFAULT_SOURCE #endif #endif + #if defined(__APPLE__) #ifndef _DARWIN_C_SOURCE #define _DARWIN_C_SOURCE #endif #endif + +#if ! defined(__FreeBSD__) #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L #endif +#endif #include <stdlib.h> #include <math.h> |