diff --git a/src/server.c b/src/server.c index 5575ffe..c5f840d 100644 --- a/src/server.c +++ b/src/server.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include "common.h" @@ -55,6 +54,8 @@ #ifdef WINDOWS32 WORD req_version = MAKEWORD(2, 2); WSADATA wsa_data; +#else +#include #endif /* Global server variables */ diff --git a/src/window.c b/src/window.c index 79d2b65..72a0ad5 100644 --- a/src/window.c +++ b/src/window.c @@ -19,7 +19,9 @@ #include #include #include +#ifndef WINDOWS32 #include +#endif #include #include diff --git a/src/windows.h b/src/windows.h index 2addd6e..cb7e399 100644 --- a/src/windows.h +++ b/src/windows.h @@ -20,6 +20,7 @@ typedef unsigned int in_addr_t; +#include #include #include #include