summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Nyman <ted@github.com>2016-06-19 22:14:41 -0700
committerGitHub <noreply@github.com>2016-06-19 22:14:41 -0700
commitbc0ea5c466e7ce69df96ea410b2a84f7312cf1a0 (patch)
tree596eaf918a755c697efeed4fcd6bb791b520c01d
parente30db1a3bea4ad464470dc22be9280c0ef58f4c1 (diff)
Do not define _XOPEN_SOURCE for OS X
Resolves failed `make` on OS X.
-rw-r--r--fmacros.h2
1 files changed, 2 insertions, 0 deletions
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