1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +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 case "$host_os" in
# Try to work out if this is the native HPUX compiler that uses the -Ae flag. # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
*hpux*) *hpux*)
AC_PROG_CC_FLAG(Ae)
# mmap on HPUX is completely broken... # mmap on HPUX is completely broken...
AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken]) AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken])
if test $ac_cv_prog_cc_Ae = yes; then
CPPFLAGS="$CPPFLAGS -Ae"
fi
;; ;;
*aix*) *aix*)

View File

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

View File

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