# HG changeset patch # User Matthew Wild # Date 1543925518 0 # Node ID 861d510e18764cd5f14cde5974ed1baa3a2d473d # Parent a374905e99ffc703d4c0ef55b0995d52b38fe928 util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups() diff -r a374905e99ff -r 861d510e1876 util-src/pposix.c --- 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 #include