diff --git a/configure b/configure index dd54f3df9d4c5423a0e979c0476d1c4df5f0c0b3..98080e21d98915a851936b8e295c2b17d538ec8d 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 d96e78ff82005bc41ef5fc6460ce60529b434de7..99704c751bf95c47922b86dbbb798da813dc0b49 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 3d0b6619b0d8c2706b8dbf9b4da4ef9f89453d71..7ee7b632dca3d3ed7804720d3049d038dddbb3ba 100644 --- a/dlls/avicap32/avicap32_main.c +++ b/dlls/avicap32/avicap32_main.c @@ -29,9 +29,7 @@ #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif -#ifdef HAVE_SYS_ERRNO_H -# include <sys/errno.h> -#endif +#include <errno.h> #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 3ad592d4b44cdf03b22a062120d47a1670d61df0..d951e767263c66e4aaa36e03d6d89c125b6f660f 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -43,9 +43,6 @@ # include <sys/ioctl.h> #endif #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -# include <sys/errno.h> -#endif #ifdef HAVE_LINUX_IOCTL_H # include <linux/ioctl.h> #endif diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index a88391c0fa4c419df04f1782b6949aadde3a2c5a..2902f9fc64b2f1b939f2b7f73d28b0258b0568e2 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -39,9 +39,6 @@ # include <sys/ioctl.h> #endif #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -# include <sys/errno.h> -#endif #ifdef HAVE_LINUX_INPUT_H # include <linux/input.h> # undef SW_MAX diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index d9be9fb021febce6867506847212f182b85e501f..8e486027d9758a426a1a021f26ea1049dfcc1525 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -27,9 +27,6 @@ #ifdef HAVE_UNISTD_H # include <unistd.h> #endif -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #ifdef HAVE_LINUX_MAJOR_H # include <linux/major.h> #endif diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 98536280b6c0e0222885b6fa708e7891d891ea82..e6ca21a70a0896a224ec91821d2e3d1cd50b6421 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -23,9 +23,6 @@ #include <assert.h> #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #include <fcntl.h> #ifdef HAVE_UNISTD_H # include <unistd.h> diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c index a7995e2dffa5c52be9f065b516adaa3447450539..119eb294da39c19a33a9b0e4a2d3988eb4387a47 100644 --- a/dlls/qcap/v4l.c +++ b/dlls/qcap/v4l.c @@ -38,9 +38,7 @@ #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> #endif -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif +#include <errno.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif diff --git a/dlls/winejoystick.drv/joystick.c b/dlls/winejoystick.drv/joystick.c index df73b4c6e58bd065be53557bcae676e97dc6b9df..577e593a86f0ef73384b954b699f39a4a69457eb 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 <sys/errno.h> -#endif +#include <errno.h> #include "windef.h" #include "winbase.h" diff --git a/dlls/wineoss.drv/midi.c b/dlls/wineoss.drv/midi.c index 72ceb1a1a047a231ac38b855b27fb2fa9331f54b..b1c60da36372fa03d8d0776f4b02fb4e192a6754 100644 --- a/dlls/wineoss.drv/midi.c +++ b/dlls/wineoss.drv/midi.c @@ -60,9 +60,6 @@ #ifdef HAVE_SYS_POLL_H #include <sys/poll.h> #endif -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #include <sys/soundcard.h> #include "windef.h" diff --git a/dlls/wineoss.drv/mmaux.c b/dlls/wineoss.drv/mmaux.c index 3dbc6a0c352f1b3aaa8071f653cb27fcb3ce2d6d..216d2e2cf903b2112191c4f4f346f9ff13495457 100644 --- a/dlls/wineoss.drv/mmaux.c +++ b/dlls/wineoss.drv/mmaux.c @@ -31,9 +31,6 @@ #ifdef HAVE_SYS_IOCTL_H # include <sys/ioctl.h> #endif -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #include <sys/soundcard.h> #include "windef.h" diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 13ee0a4791235746203bbe7de363aa2797371798..b3a79f37b167ac664c68740676cd59c6f5823b43 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -76,9 +76,6 @@ #include <ctype.h> #include <fcntl.h> #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #ifdef HAVE_NETDB_H #include <netdb.h> #endif diff --git a/include/config.h.in b/include/config.h.in index 60179dbe8d9f76231a6ce0cd320a65f66d91cbc1..34c6db421c6ac4edcbcaa7fd73f807bdc31c033d 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -884,9 +884,6 @@ /* Define to 1 if you have the <sys/epoll.h> header file. */ #undef HAVE_SYS_EPOLL_H -/* Define to 1 if you have the <sys/errno.h> header file. */ -#undef HAVE_SYS_ERRNO_H - /* Define to 1 if you have the <sys/event.h> header file. */ #undef HAVE_SYS_EVENT_H diff --git a/server/change.c b/server/change.c index 6461e9536eb7d385bdca0e162f6193856c1a251e..f6d56b0d719962a519e1e19f852a1a6f1706a06d 100644 --- a/server/change.c +++ b/server/change.c @@ -32,9 +32,6 @@ #include <limits.h> #include <dirent.h> #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #include "ntstatus.h" #define WIN32_NO_STATUS diff --git a/server/file.c b/server/file.c index 07dab39ff1c8ea7bf99d334901ef376209f1fc8a..02a1e37ebcb35212478a399544ca61cc4adaa1b7 100644 --- a/server/file.c +++ b/server/file.c @@ -28,9 +28,6 @@ #include <string.h> #include <stdlib.h> #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -#include <sys/errno.h> -#endif #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> diff --git a/server/sock.c b/server/sock.c index 9f62da20288a9dd21d2defc0add32ee6279214ce..7e4acd8dab59f1579277c2a4e5ae6239e56a4b2c 100644 --- a/server/sock.c +++ b/server/sock.c @@ -30,9 +30,6 @@ #include <string.h> #include <stdlib.h> #include <errno.h> -#ifdef HAVE_SYS_ERRNO_H -# include <sys/errno.h> -#endif #include <sys/time.h> #include <sys/types.h> #ifdef HAVE_SYS_SOCKET_H