Software /
code /
prosody
Diff
util-src/pposix.c @ 9681:861d510e1876
util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 04 Dec 2018 12:11:58 +0000 |
parent | 9282:778d2dbfc784 |
child | 10411:db2a06b9ff98 |
line wrap: on
line diff
--- a/util-src/pposix.c Tue Dec 04 12:11:15 2018 +0000 +++ b/util-src/pposix.c Tue Dec 04 12:11:58 2018 +0000 @@ -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>