Software /
code /
prosody
Changeset
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 |
parents | 9680:a374905e99ff |
children | 9682:814a9d89d2bd |
files | util-src/pposix.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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>