diff --git a/server/file.c b/server/file.c index b4560a82a74..60b72a66d58 100644 --- a/server/file.c +++ b/server/file.c @@ -35,7 +35,9 @@ #include #include #include +#ifdef HAVE_UTIME_H #include +#endif #include "winerror.h" #include "winbase.h" diff --git a/server/named_pipe.c b/server/named_pipe.c index f2323cc5056..32fae99ac36 100644 --- a/server/named_pipe.c +++ b/server/named_pipe.c @@ -32,7 +32,9 @@ #include #include #include +#ifdef HAVE_SYS_SOCKET_H #include +#endif #include #include diff --git a/server/object.h b/server/object.h index 7868e2fbd73..234c9720ffb 100644 --- a/server/object.h +++ b/server/object.h @@ -21,7 +21,10 @@ #ifndef __WINE_SERVER_OBJECT_H #define __WINE_SERVER_OBJECT_H +#ifdef HAVE_SYS_POLL_H #include +#endif + #include #include "wine/server_protocol.h" #include "list.h" diff --git a/server/request.c b/server/request.c index 15c4883a6c1..5411313fcf7 100644 --- a/server/request.c +++ b/server/request.c @@ -24,7 +24,9 @@ #include #include #include +#ifdef HAVE_PWD_H #include +#endif #include #include #include @@ -39,8 +41,12 @@ #ifdef HAVE_SYS_WAIT_H # include #endif +#ifdef HAVE_SYS_UIO_H #include +#endif +#ifdef HAVE_SYS_UN_H #include +#endif #include #include "windef.h" diff --git a/server/select.c b/server/select.c index 2ea23548184..324ec20842f 100644 --- a/server/select.c +++ b/server/select.c @@ -18,12 +18,16 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "config.h" + #include #include #include #include #include +#ifdef HAVE_SYS_POLL_H #include +#endif #include #include #include diff --git a/server/serial.c b/server/serial.c index 0e4d79f4ff5..998d9b61e7b 100644 --- a/server/serial.c +++ b/server/serial.c @@ -32,9 +32,15 @@ #include #include #include +#ifdef HAVE_UTIME_H #include +#endif +#ifdef HAVE_TERMIOS_H #include +#endif +#ifdef HAVE_SYS_IOCTL_H #include +#endif #include "winerror.h" #include "winbase.h" diff --git a/server/smb.c b/server/smb.c index ab00685f235..c3ab30b1e49 100644 --- a/server/smb.c +++ b/server/smb.c @@ -33,9 +33,15 @@ #include #include #include +#ifdef HAVE_UTIME_H #include +#endif +#ifdef HAVE_TERMIOS_H #include +#endif +#ifdef HAVE_SYS_IOCTL_H #include +#endif #include "winerror.h" #include "winbase.h" diff --git a/server/sock.c b/server/sock.c index d528ab5ebdc..3a4e514af35 100644 --- a/server/sock.c +++ b/server/sock.c @@ -37,7 +37,9 @@ #ifdef HAVE_SYS_SOCKET_H # include #endif +#ifdef HAVE_SYS_IOCTL_H #include +#endif #ifdef HAVE_SYS_FILIO_H # include #endif diff --git a/server/trace.c b/server/trace.c index 1dd85f1ac57..50695344719 100644 --- a/server/trace.c +++ b/server/trace.c @@ -24,7 +24,11 @@ #include #include #include + +#ifdef HAVE_SYS_UIO_H #include +#endif + #include "windef.h" #include "winbase.h"