summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-27 09:33:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:16 -0500
commit425543c76aec2e4aca8d817aa1ab843c9af83925 (patch)
tree5bc42ac9fefff87c9471c27b8daf455848b0c6d6 /source4/build
parent5aedcc20667e21b4b0439232db71383c5c2b39fd (diff)
downloadsamba-425543c76aec2e4aca8d817aa1ab843c9af83925.tar.gz
samba-425543c76aec2e4aca8d817aa1ab843c9af83925.tar.bz2
samba-425543c76aec2e4aca8d817aa1ab843c9af83925.zip
r5040: attempt to get solaris10 building by defining _XOPEN_SOURCE
(This used to be commit d9c1bf10608ecc3d6a4aace44fb0dce3547c5f53)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/rewrite.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index a6addcf91a..8f90e3a916 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -9,6 +9,15 @@ AC_SUBST(SONAMEFLAG)
AC_SUBST(PICFLAG)
AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions])
+
+# The definition of _GNU_SOURCE potentially causes a change of the value
+# of _XOPEN_SOURCE. So define it only conditionally.
+AH_VERBATIM([_XOPEN_SOURCE],
+[/* Define on UNIX to activate XPG/5 features. */
+#if !defined(_XOPEN_SOURCE)
+# define _XOPEN_SOURCE 500
+#endif])
+
AC_SYS_LARGEFILE
#