From 03909ad59be6faa08853969175735add0f7d2a1d Mon Sep 17 00:00:00 2001 From: frekky Date: Mon, 16 Nov 2015 21:59:01 +0800 Subject: [PATCH] Fixed err.h errors --- src/server.c | 3 ++- src/window.c | 2 ++ src/windows.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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