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:
parent
2e24543b21
commit
d82ed849cc
@ -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*)
|
||||
|
@ -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);
|
||||
|
@ -352,4 +352,8 @@ typedef int bool;
|
||||
#define __STRING(x) #x
|
||||
#endif
|
||||
|
||||
#if MMAP_BLACKLIST
|
||||
#undef HAVE_MMAP
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user