X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=have.h;h=6d65bcd354e611649cdea163517a05db266ad594;hb=6bc5d626a8726fc23365ee705761a3c666a08ad4;hp=682fd2b7c21f6c75bab7824f65ba8455c7915591;hpb=075264a9e18f9fd58cad044c064a91557e9ed429;p=tinc diff --git a/have.h b/have.h index 682fd2b7..6d65bcd3 100644 --- a/have.h +++ b/have.h @@ -1,7 +1,7 @@ /* have.h -- include headers which are known to exist Copyright (C) 1998-2005 Ivo Timmermans - 2003-2009 Guus Sliepen + 2003-2012 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,6 +21,15 @@ #ifndef __TINC_HAVE_H__ #define __TINC_HAVE_H__ +#ifdef HAVE_MINGW +#ifdef WITH_WINDOWS2000 +#define WINVER Windows2000 +#else +#define WINVER WindowsXP +#endif +#define WIN32_LEAN_AND_MEAN +#endif + #include #include #include @@ -32,12 +41,8 @@ #include #ifdef HAVE_MINGW -#ifdef WITH_WINDOWS2000 -#define WINVER Windows2000 -#else -#define WINVER WindowsXP -#endif #include +#include #include #include #endif @@ -54,10 +59,6 @@ #include #endif -#ifdef HAVE_ALLOCA_H -#include -#endif - /* Include system specific headers */ #ifdef HAVE_SYSLOG_H @@ -96,6 +97,10 @@ #include #endif +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + #ifdef HAVE_SYS_UIO_H #include #endif @@ -104,6 +109,10 @@ #include #endif +#ifdef HAVE_DIRENT_H +#include +#endif + /* SunOS really wants sys/socket.h BEFORE net/if.h, and FreeBSD wants these lines below the rest. */ @@ -127,10 +136,18 @@ #include #endif +#ifdef HAVE_NET_TUN_IF_TUN_H +#include +#endif + #ifdef HAVE_NET_IF_TAP_H #include #endif +#ifdef HAVE_NET_TAP_IF_TAP_H +#include +#endif + #ifdef HAVE_NETINET_IN_SYSTM_H #include #endif @@ -179,4 +196,10 @@ #include #endif +#ifdef HAVE_MINGW +#define SLASH "\\" +#else +#define SLASH "/" +#endif + #endif /* __TINC_SYSTEM_H__ */