From bc0ea5c466e7ce69df96ea410b2a84f7312cf1a0 Mon Sep 17 00:00:00 2001 From: Ted Nyman Date: Sun, 19 Jun 2016 22:14:41 -0700 Subject: [PATCH] Do not define _XOPEN_SOURCE for OS X Resolves failed `make` on OS X. --- fmacros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fmacros.h b/fmacros.h index 24c9bac..14fed60 100644 --- a/fmacros.h +++ b/fmacros.h @@ -13,8 +13,10 @@ #if defined(__sun__) #define _POSIX_C_SOURCE 200112L #else +#if !(defined(__APPLE__) && defined(__MACH__)) #define _XOPEN_SOURCE 600 #endif +#endif #if defined(__APPLE__) && defined(__MACH__) #define _OSX