aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-12-04 12:11:58 +0000
committerMatthew Wild <mwild1@gmail.com>2018-12-04 12:11:58 +0000
commitf68b6612f8690450a115a653cdfb13b44988ab53 (patch)
tree019d4ae7de79700781cf52847bdf802fd672d904 /util-src
parent4ef9902ea95ef9d99d0e98dd85dc6a124d4c3894 (diff)
downloadprosody-f68b6612f8690450a115a653cdfb13b44988ab53.tar.gz
prosody-f68b6612f8690450a115a653cdfb13b44988ab53.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.c4
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>