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 | f68b6612f8690450a115a653cdfb13b44988ab53 (patch) | |
tree | 019d4ae7de79700781cf52847bdf802fd672d904 | |
parent | 4ef9902ea95ef9d99d0e98dd85dc6a124d4c3894 (diff) | |
download | prosody-f68b6612f8690450a115a653cdfb13b44988ab53.tar.gz prosody-f68b6612f8690450a115a653cdfb13b44988ab53.zip |
util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups()
-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> |