diff --git a/src/pixiewps.c b/src/pixiewps.c index 6bdb4fe..912e2c8 100644 --- a/src/pixiewps.c +++ b/src/pixiewps.c @@ -16,6 +16,7 @@ */ #define _POSIX_C_SOURCE 200809L +#define _XOPEN_SOURCE 700 #include #include @@ -31,8 +32,14 @@ # include #endif +#ifdef __APPLE__ +# define _DARWIN_C_SOURCE +#endif #include #include +#if defined(__APPLE__) || defined(__FreeBSD__) +# include +#endif #include "config.h" #include "pixiewps.h"