mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
sys/mman.h on Tru64
metze
(This used to be commit 8109eb9d28)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
70028b82a9
commit
d40dcaebda
@@ -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)])
|
||||
|
||||
Reference in New Issue
Block a user