From 57279184249f0e0eba46270f938d8894f679c4f3 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Fri, 4 Mar 2005 12:38:36 +0000 Subject: [PATCH] Added a check for poll.h. --- configure | 2 ++ configure.ac | 1 + dlls/kernel/sync.c | 3 +++ dlls/ntdll/sync.c | 3 +++ dlls/winmm/wineoss/audio.c | 3 +++ dlls/winmm/wineoss/dscapture.c | 3 +++ dlls/winmm/wineoss/dsrender.c | 3 +++ dlls/winmm/wineoss/midi.c | 3 +++ dlls/winsock/socket.c | 3 +++ include/config.h.in | 3 +++ server/fd.c | 3 +++ server/file.c | 3 +++ server/named_pipe.c | 3 +++ server/process.c | 3 +++ server/request.c | 3 +++ server/serial.c | 3 +++ server/signal.c | 3 +++ server/thread.c | 3 +++ 18 files changed, 51 insertions(+) diff --git a/configure b/configure index 26e961f8852..a8ff5472479 100755 --- a/configure +++ b/configure @@ -7259,6 +7259,7 @@ done + for ac_header in \ @@ -7296,6 +7297,7 @@ for ac_header in \ netinet/tcp.h \ netinet/tcp_fsm.h \ openssl/ssl.h \ + poll.h \ process.h \ pthread.h \ pwd.h \ diff --git a/configure.ac b/configure.ac index d9cfbab58cc..b06b65a5dcc 100644 --- a/configure.ac +++ b/configure.ac @@ -199,6 +199,7 @@ AC_CHECK_HEADERS(\ netinet/tcp.h \ netinet/tcp_fsm.h \ openssl/ssl.h \ + poll.h \ process.h \ pthread.h \ pwd.h \ diff --git a/dlls/kernel/sync.c b/dlls/kernel/sync.c index 225162aa5a6..7d414b2998c 100644 --- a/dlls/kernel/sync.c +++ b/dlls/kernel/sync.c @@ -29,6 +29,9 @@ #ifdef HAVE_SYS_IOCTL_H #include #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H #include #endif diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index adec16a6113..d22bbbac9a8 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -29,6 +29,9 @@ #ifdef HAVE_SYS_TIME_H # include #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H # include #endif diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index 0d4cd983c83..90f928b83e7 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -49,6 +49,9 @@ #ifdef HAVE_SYS_MMAN_H # include #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H # include #endif diff --git a/dlls/winmm/wineoss/dscapture.c b/dlls/winmm/wineoss/dscapture.c index b2de9b4f083..a1c695e6e1f 100644 --- a/dlls/winmm/wineoss/dscapture.c +++ b/dlls/winmm/wineoss/dscapture.c @@ -36,6 +36,9 @@ #ifdef HAVE_SYS_MMAN_H # include #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H # include #endif diff --git a/dlls/winmm/wineoss/dsrender.c b/dlls/winmm/wineoss/dsrender.c index 4d20656ddb2..4b41742f34f 100644 --- a/dlls/winmm/wineoss/dsrender.c +++ b/dlls/winmm/wineoss/dsrender.c @@ -39,6 +39,9 @@ #ifdef HAVE_SYS_MMAN_H # include #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H # include #endif diff --git a/dlls/winmm/wineoss/midi.c b/dlls/winmm/wineoss/midi.c index 067979f4acf..fd6b54e2620 100644 --- a/dlls/winmm/wineoss/midi.c +++ b/dlls/winmm/wineoss/midi.c @@ -52,6 +52,9 @@ #ifdef HAVE_SYS_IOCTL_H # include #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H #include #endif diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 41dda63676c..2edb58fe77c 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -104,6 +104,9 @@ # define HAVE_IPX #endif +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H # include #endif diff --git a/include/config.h.in b/include/config.h.in index 46e71c0d94f..b26730d2d26 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -419,6 +419,9 @@ /* Define to 1 if the system has the type `pid_t'. */ #undef HAVE_PID_T +/* Define to 1 if you have the header file. */ +#undef HAVE_POLL_H + /* Define to 1 if you have the `popen' function. */ #undef HAVE_POPEN diff --git a/server/fd.c b/server/fd.c index ed95a745515..0dcaee7d858 100644 --- a/server/fd.c +++ b/server/fd.c @@ -30,6 +30,9 @@ #include #include #include +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H #include #endif diff --git a/server/file.c b/server/file.c index 9ca2c9186fe..3971182c879 100644 --- a/server/file.c +++ b/server/file.c @@ -39,6 +39,9 @@ #ifdef HAVE_UTIME_H #include #endif +#ifdef HAVE_POLL_H +#include +#endif #include "winerror.h" #include "windef.h" diff --git a/server/named_pipe.c b/server/named_pipe.c index e10f44a89a8..ee1fceb468e 100644 --- a/server/named_pipe.c +++ b/server/named_pipe.c @@ -38,6 +38,9 @@ #endif #include #include +#ifdef HAVE_POLL_H +#include +#endif #include "windef.h" #include "winbase.h" diff --git a/server/process.c b/server/process.c index 7eab25bc632..c89fa1ce87c 100644 --- a/server/process.c +++ b/server/process.c @@ -33,6 +33,9 @@ # include #endif #include +#ifdef HAVE_POLL_H +#include +#endif #include "windef.h" #include "winbase.h" diff --git a/server/request.c b/server/request.c index d7602daa246..4f943d0b857 100644 --- a/server/request.c +++ b/server/request.c @@ -48,6 +48,9 @@ #include #endif #include +#ifdef HAVE_POLL_H +#include +#endif #include "windef.h" #include "winbase.h" diff --git a/server/serial.c b/server/serial.c index a0d59a9a987..1ad7461e89b 100644 --- a/server/serial.c +++ b/server/serial.c @@ -42,6 +42,9 @@ #ifdef HAVE_SYS_IOCTL_H #include #endif +#ifdef HAVE_POLL_H +#include +#endif #include "winerror.h" #include "windef.h" diff --git a/server/signal.c b/server/signal.c index 0fe7df3f654..ea1c15b8627 100644 --- a/server/signal.c +++ b/server/signal.c @@ -22,6 +22,9 @@ #include #include +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H #include #endif diff --git a/server/thread.c b/server/thread.c index a2a232df4cf..059aec4587d 100644 --- a/server/thread.c +++ b/server/thread.c @@ -32,6 +32,9 @@ #include #include #include +#ifdef HAVE_POLL_H +#include +#endif #include "windef.h" #include "winbase.h"