Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
9680:a374905e99ff | 9681:861d510e1876 |
---|---|
23 #else | 23 #else |
24 #ifndef _DEFAULT_SOURCE | 24 #ifndef _DEFAULT_SOURCE |
25 #define _DEFAULT_SOURCE | 25 #define _DEFAULT_SOURCE |
26 #endif | 26 #endif |
27 #endif | 27 #endif |
28 | |
28 #if defined(__APPLE__) | 29 #if defined(__APPLE__) |
29 #ifndef _DARWIN_C_SOURCE | 30 #ifndef _DARWIN_C_SOURCE |
30 #define _DARWIN_C_SOURCE | 31 #define _DARWIN_C_SOURCE |
31 #endif | 32 #endif |
32 #endif | 33 #endif |
34 | |
35 #if ! defined(__FreeBSD__) | |
33 #ifndef _POSIX_C_SOURCE | 36 #ifndef _POSIX_C_SOURCE |
34 #define _POSIX_C_SOURCE 200809L | 37 #define _POSIX_C_SOURCE 200809L |
38 #endif | |
35 #endif | 39 #endif |
36 | 40 |
37 #include <stdlib.h> | 41 #include <stdlib.h> |
38 #include <math.h> | 42 #include <math.h> |
39 #include <unistd.h> | 43 #include <unistd.h> |