1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r18337: more -Ae tests in check_cc.m4

honor the MMAP_BLACKLIST
(This used to be commit c2f2dbb5d1)
This commit is contained in:
Andrew Tridgell 2006-09-10 12:45:37 +00:00 committed by Gerald (Jerry) Carter
parent 2e24543b21
commit d82ed849cc
3 changed files with 6 additions and 4 deletions

View File

@ -168,12 +168,8 @@ fi
case "$host_os" in
# Try to work out if this is the native HPUX compiler that uses the -Ae flag.
*hpux*)
AC_PROG_CC_FLAG(Ae)
# mmap on HPUX is completely broken...
AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken])
if test $ac_cv_prog_cc_Ae = yes; then
CPPFLAGS="$CPPFLAGS -Ae"
fi
;;
*aix*)

View File

@ -39,6 +39,8 @@ main()
MAP_FILE | MAP_SHARED,
fd, 0);
if (buf == (int *)-1) exit(1);
while (count-- && buf[9124] != 55732) sleep(1);
if (count <= 0) exit(1);

View File

@ -352,4 +352,8 @@ typedef int bool;
#define __STRING(x) #x
#endif
#if MMAP_BLACKLIST
#undef HAVE_MMAP
#endif
#endif