svn commit: samba r18382 - in
branches/SAMBA_4_0/source/lib/replace: .
metze at samba.org
metze at samba.org
Mon Sep 11 13:47:29 GMT 2006
Author: metze
Date: 2006-09-11 13:47:29 +0000 (Mon, 11 Sep 2006)
New Revision: 18382
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18382
Log:
define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
sys/mman.h on Tru64
metze
Modified:
branches/SAMBA_4_0/source/lib/replace/libreplace.m4
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2006-09-11 12:47:40 UTC (rev 18381)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2006-09-11 13:47:29 UTC (rev 18382)
@@ -24,6 +24,12 @@
AC_C_INLINE
AC_PROG_INSTALL
+AH_VERBATIM([_XOPEN_SOURCE],
+[/* Enable XOPEN on systems that have them. */
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 1
+#endif])
+
AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],
[/* Enable XOPEN extensions on systems that have them. */
#ifndef _XOPEN_SOURCE_EXTENDED
@@ -113,7 +119,6 @@
#endif]
)
-
AC_CACHE_CHECK([for working mmap],samba_cv_HAVE_MMAP,[
AC_TRY_RUN([#include "$libreplacedir/test/shared_mmap.c"],
samba_cv_HAVE_MMAP=yes,samba_cv_HAVE_MMAP=no,samba_cv_HAVE_MMAP=cross)])
More information about the samba-cvs
mailing list