Commit e3001b6a authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Assume that sys/mman.h is available on Unix.

parent 13ec7952
...@@ -8540,12 +8540,6 @@ then : ...@@ -8540,12 +8540,6 @@ then :
printf "%s\n" "#define HAVE_SYS_LINK_H 1" >>confdefs.h printf "%s\n" "#define HAVE_SYS_LINK_H 1" >>confdefs.h
fi fi
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default" ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_modem_h" = xyes if test "x$ac_cv_header_sys_modem_h" = xyes
then : then :
......
...@@ -482,7 +482,6 @@ AC_CHECK_HEADERS(\ ...@@ -482,7 +482,6 @@ AC_CHECK_HEADERS(\
sys/ioctl.h \ sys/ioctl.h \
sys/ipc.h \ sys/ipc.h \
sys/link.h \ sys/link.h \
sys/mman.h \
sys/modem.h \ sys/modem.h \
sys/mtio.h \ sys/mtio.h \
sys/param.h \ sys/param.h \
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h> #include <unistd.h>
#include <dlfcn.h> #include <dlfcn.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
...@@ -48,9 +49,6 @@ ...@@ -48,9 +49,6 @@
#ifdef HAVE_SYS_AUXV_H #ifdef HAVE_SYS_AUXV_H
# include <sys/auxv.h> # include <sys/auxv.h>
#endif #endif
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H #ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h> # include <sys/resource.h>
#endif #endif
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/mman.h>
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h> # include <sys/socket.h>
#endif #endif
...@@ -52,9 +53,6 @@ ...@@ -52,9 +53,6 @@
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
#include <sys/un.h> #include <sys/un.h>
#endif #endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef HAVE_SYS_PRCTL_H #ifdef HAVE_SYS_PRCTL_H
# include <sys/prctl.h> # include <sys/prctl.h>
#endif #endif
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <limits.h> #include <limits.h>
#include <signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#ifdef HAVE_SYS_SYSCALL_H #ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h> #include <sys/syscall.h>
#endif #endif
......
...@@ -35,9 +35,7 @@ ...@@ -35,9 +35,7 @@
#include <signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#ifdef HAVE_SYS_TIMES_H #ifdef HAVE_SYS_TIMES_H
#include <sys/times.h> #include <sys/times.h>
#endif #endif
......
...@@ -37,9 +37,7 @@ ...@@ -37,9 +37,7 @@
# include <sys/socket.h> # include <sys/socket.h>
#endif #endif
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_SYS_MMAN_H #include <sys/mman.h>
# include <sys/mman.h>
#endif
#ifdef HAVE_SYS_SYSINFO_H #ifdef HAVE_SYS_SYSINFO_H
# include <sys/sysinfo.h> # include <sys/sysinfo.h>
#endif #endif
......
...@@ -35,9 +35,7 @@ ...@@ -35,9 +35,7 @@
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <dlfcn.h> #include <dlfcn.h>
#ifdef HAVE_SYS_MMAN_H #include <sys/mman.h>
# include <sys/mman.h>
#endif
#include <string.h> #include <string.h>
#include <dirent.h> #include <dirent.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -637,9 +637,6 @@ ...@@ -637,9 +637,6 @@
/* Define to 1 if you have the <sys/link.h> header file. */ /* Define to 1 if you have the <sys/link.h> header file. */
#undef HAVE_SYS_LINK_H #undef HAVE_SYS_LINK_H
/* Define to 1 if you have the <sys/mman.h> header file. */
#undef HAVE_SYS_MMAN_H
/* Define to 1 if you have the <sys/modem.h> header file. */ /* Define to 1 if you have the <sys/modem.h> header file. */
#undef HAVE_SYS_MODEM_H #undef HAVE_SYS_MODEM_H
......
...@@ -28,9 +28,7 @@ ...@@ -28,9 +28,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H #ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h> # include <sys/resource.h>
#endif #endif
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_STDINT_H #ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
......
...@@ -71,9 +71,7 @@ ...@@ -71,9 +71,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_SYS_MMAN_H #include <sys/mman.h>
# include <sys/mman.h>
#endif
#ifdef HAVE_SYS_SYSCALL_H #ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h> # include <sys/syscall.h>
#endif #endif
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_SYS_MMAN_H #include <sys/mman.h>
# include <sys/mman.h>
#endif
#ifdef HAVE_SYS_SYSCALL_H #ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h> # include <sys/syscall.h>
#endif #endif
......
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_SYS_MMAN_H #include <sys/mman.h>
# include <sys/mman.h>
#endif
#include <unistd.h> #include <unistd.h>
#include "ntstatus.h" #include "ntstatus.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment