Commit 13ec7952 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Assume that unistd.h is available on Unix.

parent 7d5af655
...@@ -8714,12 +8714,6 @@ then : ...@@ -8714,12 +8714,6 @@ then :
printf "%s\n" "#define HAVE_SYSCALL_H 1" >>confdefs.h printf "%s\n" "#define HAVE_SYSCALL_H 1" >>confdefs.h
fi fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
if test "x$ac_cv_header_utime_h" = xyes if test "x$ac_cv_header_utime_h" = xyes
then : then :
......
...@@ -511,7 +511,6 @@ AC_CHECK_HEADERS(\ ...@@ -511,7 +511,6 @@ AC_CHECK_HEADERS(\
sys/vnode.h \ sys/vnode.h \
sys/wait.h \ sys/wait.h \
syscall.h \ syscall.h \
unistd.h \
utime.h \ utime.h \
valgrind/memcheck.h \ valgrind/memcheck.h \
valgrind/valgrind.h valgrind/valgrind.h
......
...@@ -25,10 +25,7 @@ ...@@ -25,10 +25,7 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
......
...@@ -27,15 +27,12 @@ ...@@ -27,15 +27,12 @@
#include <stdarg.h> #include <stdarg.h>
#include <sys/types.h> #include <sys/types.h>
#include <dirent.h> #include <dirent.h>
#include <unistd.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif #endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
......
...@@ -33,18 +33,14 @@ ...@@ -33,18 +33,14 @@
#include <stdarg.h> #include <stdarg.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_STAT_H #include <sys/stat.h>
# include <sys/stat.h> #include <unistd.h>
#endif
#ifdef HAVE_SYS_PRCTL_H #ifdef HAVE_SYS_PRCTL_H
# include <sys/prctl.h> # include <sys/prctl.h>
#endif #endif
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
# include <pwd.h> # include <pwd.h>
#endif #endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef __APPLE__ #ifdef __APPLE__
# include <CoreFoundation/CFLocale.h> # include <CoreFoundation/CFLocale.h>
# include <CoreFoundation/CFString.h> # include <CoreFoundation/CFString.h>
......
...@@ -105,9 +105,7 @@ ...@@ -105,9 +105,7 @@
#include <sys/statfs.h> #include <sys/statfs.h>
#endif #endif
#include <time.h> #include <time.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -48,9 +48,7 @@ ...@@ -48,9 +48,7 @@
#ifdef HAVE_LINUX_VIDEODEV2_H #ifdef HAVE_LINUX_VIDEODEV2_H
#include <linux/videodev2.h> #include <linux/videodev2.h>
#endif #endif
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
......
...@@ -32,9 +32,7 @@ ...@@ -32,9 +32,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#define OEMRESOURCE #define OEMRESOURCE
#include "windef.h" #include "windef.h"
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
#include <stdint.h> #include <stdint.h>
#include <sys/types.h> #include <sys/types.h>
#include <dirent.h> #include <dirent.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <poll.h> #include <poll.h>
#ifdef HAVE_LIBUDEV_H #ifdef HAVE_LIBUDEV_H
# include <libudev.h> # include <libudev.h>
......
...@@ -39,9 +39,7 @@ ...@@ -39,9 +39,7 @@
#ifdef HAVE_LINUX_22_JOYSTICK_API #ifdef HAVE_LINUX_22_JOYSTICK_API
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -69,9 +69,7 @@ ...@@ -69,9 +69,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <limits.h> #include <limits.h>
......
...@@ -26,9 +26,7 @@ ...@@ -26,9 +26,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <X11/Xlib.h> #include <X11/Xlib.h>
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xresource.h> #include <X11/Xresource.h>
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <dlfcn.h> #include <dlfcn.h>
#include <X11/cursorfont.h> #include <X11/cursorfont.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
......
...@@ -22,9 +22,7 @@ ...@@ -22,9 +22,7 @@
#include "config.h" #include "config.h"
#include <string.h> #include <string.h>
#ifdef HAVE_UNISTD_H #include <unistd.h>
# include <unistd.h>
#endif
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -30,9 +30,6 @@ ...@@ -30,9 +30,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef _WIN32 #ifdef _WIN32
# include <direct.h> # include <direct.h>
......
...@@ -51,12 +51,7 @@ double [0-9]+\.[0-9]+([eE][+-]?[0-9]+)* ...@@ -51,12 +51,7 @@ double [0-9]+\.[0-9]+([eE][+-]?[0-9]+)*
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#else
#define YY_NO_UNISTD_H #define YY_NO_UNISTD_H
#endif
#include "widl.h" #include "widl.h"
#include "utils.h" #include "utils.h"
......
...@@ -104,12 +104,7 @@ ws [ \f\t\r] ...@@ -104,12 +104,7 @@ ws [ \f\t\r]
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#else
#define YY_NO_UNISTD_H #define YY_NO_UNISTD_H
#endif
#include "../tools.h" #include "../tools.h"
#include "wrc.h" #include "wrc.h"
......
...@@ -168,9 +168,7 @@ ul [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL][uU][lL] ...@@ -168,9 +168,7 @@ ul [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL][uU][lL]
# define ULLONG_MAX ((__int64)0xffffffff << 32 | 0xffffffff) # define ULLONG_MAX ((__int64)0xffffffff << 32 | 0xffffffff)
#endif #endif
#ifndef HAVE_UNISTD_H
#define YY_NO_UNISTD_H #define YY_NO_UNISTD_H
#endif
#include "../tools.h" #include "../tools.h"
#include "utils.h" #include "utils.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