svn commit: samba r5040 - in branches/SAMBA_4_0/source/build/m4: .

tridge at samba.org tridge at samba.org
Thu Jan 27 09:33:16 GMT 2005


Author: tridge
Date: 2005-01-27 09:33:16 +0000 (Thu, 27 Jan 2005)
New Revision: 5040

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5040

Log:
attempt to get solaris10 building by defining _XOPEN_SOURCE



Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4	2005-01-27 07:13:31 UTC (rev 5039)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4	2005-01-27 09:33:16 UTC (rev 5040)
@@ -9,6 +9,15 @@
 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
 
 #



More information about the samba-cvs mailing list