diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-11 13:47:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:22 -0500 |
commit | d40dcaebdac67bc85fda5ecffc2180b0fbc9423c (patch) | |
tree | a39c426f130c5feff067b1fd46c90517b93ce64d /source4/lib | |
parent | 70028b82a9d1f4c6b2a797c76b1e7d0e1da7480f (diff) | |
download | samba-d40dcaebdac67bc85fda5ecffc2180b0fbc9423c.tar.gz samba-d40dcaebdac67bc85fda5ecffc2180b0fbc9423c.tar.bz2 samba-d40dcaebdac67bc85fda5ecffc2180b0fbc9423c.zip |
r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
sys/mman.h on Tru64
metze
(This used to be commit 8109eb9d28c9043c359d48319efe91aed2714431)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/replace/libreplace.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4 index 52e1b5fe1d..8b1486c5c1 100644 --- a/source4/lib/replace/libreplace.m4 +++ b/source4/lib/replace/libreplace.m4 @@ -24,6 +24,12 @@ AC_PROG_CC_C99 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 @@ AC_INCLUDES_DEFAULT #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)]) |