summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-06-09 00:47:25 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-06-09 00:47:25 -0700
commita2a0f01d367050ca182927b8219deb581a497c2c (patch)
tree4057042a59ef10ad4c45a56a68df427f3be2ab5c
parent1defe6b37c23941fe2a67ad4fa66e8ab5f37f9b3 (diff)
Apple: Only define _DARWIN_C_SOURCE if it isn't already defined
-rw-r--r--Xosdefs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xosdefs.h b/Xosdefs.h
index ee33a32..86cb086 100644
--- a/Xosdefs.h
+++ b/Xosdefs.h
@@ -142,8 +142,10 @@ in this Software without prior written authorization from The Open Group.
* loosen our belts a tad.
*/
#if defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)
+#ifndef _DARWIN_C_SOURCE
#define _DARWIN_C_SOURCE
#endif
+#endif
#endif