From c7cb3e6cb21598281cf2b00b2ccd8323598b12ff Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 15 Dec 2011 11:16:27 +0100 Subject: [PATCH] configure: Use errno.h instead of the non-standard sys/errno.h header. --- configure | 1 - configure.ac | 1 - dlls/avicap32/avicap32_main.c | 4 +--- dlls/dinput/joystick_linux.c | 3 --- dlls/dinput/joystick_linuxinput.c | 3 --- dlls/ntdll/file.c | 3 --- dlls/ntdll/virtual.c | 3 --- dlls/qcap/v4l.c | 4 +--- dlls/winejoystick.drv/joystick.c | 4 +--- dlls/wineoss.drv/midi.c | 3 --- dlls/wineoss.drv/mmaux.c | 3 --- dlls/ws2_32/socket.c | 3 --- include/config.h.in | 3 --- server/change.c | 3 --- server/file.c | 3 --- server/sock.c | 3 --- 16 files changed, 3 insertions(+), 44 deletions(-) diff --git a/configure b/configure index dd54f3df9d4..98080e21d98 100755 --- a/configure +++ b/configure @@ -5815,7 +5815,6 @@ for ac_header in \ sys/cdio.h \ sys/elf32.h \ sys/epoll.h \ - sys/errno.h \ sys/event.h \ sys/exec_elf.h \ sys/filio.h \ diff --git a/configure.ac b/configure.ac index d96e78ff820..99704c751bf 100644 --- a/configure.ac +++ b/configure.ac @@ -460,7 +460,6 @@ AC_CHECK_HEADERS(\ sys/cdio.h \ sys/elf32.h \ sys/epoll.h \ - sys/errno.h \ sys/event.h \ sys/exec_elf.h \ sys/filio.h \ diff --git a/dlls/avicap32/avicap32_main.c b/dlls/avicap32/avicap32_main.c index 3d0b6619b0d..7ee7b632dca 100644 --- a/dlls/avicap32/avicap32_main.c +++ b/dlls/avicap32/avicap32_main.c @@ -29,9 +29,7 @@ #ifdef HAVE_SYS_STAT_H # include #endif -#ifdef HAVE_SYS_ERRNO_H -# include -#endif +#include #ifdef HAVE_SYS_TIME_H # include #endif diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 3ad592d4b44..d951e767263 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -43,9 +43,6 @@ # include #endif #include -#ifdef HAVE_SYS_ERRNO_H -# include -#endif #ifdef HAVE_LINUX_IOCTL_H # include #endif diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index a88391c0fa4..2902f9fc64b 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -39,9 +39,6 @@ # include #endif #include -#ifdef HAVE_SYS_ERRNO_H -# include -#endif #ifdef HAVE_LINUX_INPUT_H # include # undef SW_MAX diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index d9be9fb021f..8e486027d97 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -27,9 +27,6 @@ #ifdef HAVE_UNISTD_H # include #endif -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #ifdef HAVE_LINUX_MAJOR_H # include #endif diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 98536280b6c..e6ca21a70a0 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -23,9 +23,6 @@ #include #include -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #include #ifdef HAVE_UNISTD_H # include diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c index a7995e2dffa..119eb294da3 100644 --- a/dlls/qcap/v4l.c +++ b/dlls/qcap/v4l.c @@ -38,9 +38,7 @@ #ifdef HAVE_SYS_MMAN_H #include #endif -#ifdef HAVE_SYS_ERRNO_H -#include -#endif +#include #ifdef HAVE_SYS_TIME_H #include #endif diff --git a/dlls/winejoystick.drv/joystick.c b/dlls/winejoystick.drv/joystick.c index df73b4c6e58..577e593a86f 100644 --- a/dlls/winejoystick.drv/joystick.c +++ b/dlls/winejoystick.drv/joystick.c @@ -60,9 +60,7 @@ #define JOYDEV_NEW "/dev/input/js%d" #define JOYDEV_OLD "/dev/js%d" #endif -#ifdef HAVE_SYS_ERRNO_H -#include -#endif +#include #include "windef.h" #include "winbase.h" diff --git a/dlls/wineoss.drv/midi.c b/dlls/wineoss.drv/midi.c index 72ceb1a1a04..b1c60da3637 100644 --- a/dlls/wineoss.drv/midi.c +++ b/dlls/wineoss.drv/midi.c @@ -60,9 +60,6 @@ #ifdef HAVE_SYS_POLL_H #include #endif -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #include #include "windef.h" diff --git a/dlls/wineoss.drv/mmaux.c b/dlls/wineoss.drv/mmaux.c index 3dbc6a0c352..216d2e2cf90 100644 --- a/dlls/wineoss.drv/mmaux.c +++ b/dlls/wineoss.drv/mmaux.c @@ -31,9 +31,6 @@ #ifdef HAVE_SYS_IOCTL_H # include #endif -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #include #include "windef.h" diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 13ee0a47912..b3a79f37b16 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -76,9 +76,6 @@ #include #include #include -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #ifdef HAVE_NETDB_H #include #endif diff --git a/include/config.h.in b/include/config.h.in index 60179dbe8d9..34c6db421c6 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -884,9 +884,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_EPOLL_H -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_ERRNO_H - /* Define to 1 if you have the header file. */ #undef HAVE_SYS_EVENT_H diff --git a/server/change.c b/server/change.c index 6461e9536eb..f6d56b0d719 100644 --- a/server/change.c +++ b/server/change.c @@ -32,9 +32,6 @@ #include #include #include -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #include "ntstatus.h" #define WIN32_NO_STATUS diff --git a/server/file.c b/server/file.c index 07dab39ff1c..02a1e37ebcb 100644 --- a/server/file.c +++ b/server/file.c @@ -28,9 +28,6 @@ #include #include #include -#ifdef HAVE_SYS_ERRNO_H -#include -#endif #include #include #include diff --git a/server/sock.c b/server/sock.c index 9f62da20288..7e4acd8dab5 100644 --- a/server/sock.c +++ b/server/sock.c @@ -30,9 +30,6 @@ #include #include #include -#ifdef HAVE_SYS_ERRNO_H -# include -#endif #include #include #ifdef HAVE_SYS_SOCKET_H