From 392aa0f5c5ab3b4268ca001a01a04f604cd39c24 Mon Sep 17 00:00:00 2001 From: Duarte Silva Date: Thu, 14 May 2015 13:52:51 +0100 Subject: [PATCH] Fix the compilation under Linux with MinGW cross-compiler. --- pafish/vbox.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pafish/vbox.c b/pafish/vbox.c index a62f971..2e0fbd0 100644 --- a/pafish/vbox.c +++ b/pafish/vbox.c @@ -1,6 +1,7 @@ #define _WIN32_WINNT 0x0501 /* _WIN32_WINNT_WINXP */ +#include #include #include #include @@ -152,7 +153,6 @@ int vbox_sysfile2(int writelogs) { * NIC MAC check **/ int vbox_mac() { - #if defined(_IPTYPES_H) && defined(_IPHLPAPI_H) WSADATA WSD; int res = FALSE; @@ -181,10 +181,6 @@ int vbox_mac() { WSACleanup(); } return res; - #else - #warning "vbox_mac() function was not built in!" - return -1; - #endif } /**