util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups()

This commit is contained in:
Matthew Wild 2018-12-04 12:11:58 +00:00
parent 4ef9902ea9
commit f68b6612f8

View file

@ -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>