svn commit: samba r18383 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Mon Sep 11 14:08:52 GMT 2006


Author: metze
Date: 2006-09-11 14:08:51 +0000 (Mon, 11 Sep 2006)
New Revision: 18383

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

Log:
ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
to get MAP_FAILED

metze
Modified:
   branches/SAMBA_4_0/source/lib/replace/libreplace.m4
   branches/SAMBA_4_0/source/lib/replace/replace.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-11 13:47:29 UTC (rev 18382)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-11 14:08:51 UTC (rev 18383)
@@ -27,7 +27,7 @@
 AH_VERBATIM([_XOPEN_SOURCE],
 [/* Enable XOPEN on systems that have them.  */
 #ifndef _XOPEN_SOURCE
-# define _XOPEN_SOURCE 1
+# define _XOPEN_SOURCE 500
 #endif])
 
 AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],
@@ -52,6 +52,8 @@
 		;;
 esac
 
+AC_CHECK_HEADERS([standards.h])
+
 AC_C_BIGENDIAN
 AC_HEADER_STDC
 

Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h	2006-09-11 13:47:29 UTC (rev 18382)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h	2006-09-11 14:08:51 UTC (rev 18383)
@@ -30,6 +30,10 @@
 
 #include "config.h"
 
+#ifdef HAVE_STANDARDS_H
+#include <standards.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>



More information about the samba-cvs mailing list