X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhave.h;h=96e35fd75fb5818bc92c1b5b61b4dd6431d53f88;hb=7be02138580c6821145405fd55def976dfde4998;hp=88733a1e47edbd7485520c7ae607af97777a0344;hpb=14ccf509540e338502ad806f60bdc3f71ddce66f;p=tinc diff --git a/src/have.h b/src/have.h index 88733a1e..96e35fd7 100644 --- a/src/have.h +++ b/src/have.h @@ -1,7 +1,10 @@ +#ifndef TINC_HAVE_H +#define TINC_HAVE_H + /* have.h -- include headers which are known to exist Copyright (C) 1998-2005 Ivo Timmermans - 2003-2013 Guus Sliepen + 2003-2021 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 @@ -18,21 +21,16 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_HAVE_H__ -#define __TINC_HAVE_H__ - #ifdef HAVE_MINGW -#ifdef WITH_WINDOWS2000 -#define WINVER Windows2000 -#else -#define WINVER WindowsXP -#endif +#define WINVER 0x0600 +#define _WIN32_WINNT 0x0600 #define WIN32_LEAN_AND_MEAN #endif #include #include #include +#include #include #include #include @@ -41,6 +39,7 @@ #include #include #include +#include #ifdef HAVE_MINGW #include @@ -49,10 +48,6 @@ #include #endif -#ifdef HAVE_STDBOOL_H -#include -#endif - #ifdef HAVE_TERMIOS_H #include #endif @@ -63,6 +58,10 @@ /* Include system specific headers */ +#ifdef HAVE_STDDEF_H +#include +#endif + #ifdef HAVE_SYSLOG_H #include #endif @@ -71,9 +70,6 @@ #include #endif -#ifdef HAVE_TIME_H -#include -#endif #ifdef HAVE_SYS_TYPES_H #include @@ -103,10 +99,6 @@ #include #endif -#ifdef HAVE_SYS_UIO_H -#include -#endif - #ifdef HAVE_SYS_UN_H #include #endif @@ -210,6 +202,12 @@ #include #endif +#ifdef HAVE_GETOPT_H +#include +#else +#include "getopt.h" +#endif + #ifdef STATUS #undef STATUS #endif @@ -220,4 +218,4 @@ #define SLASH "/" #endif -#endif /* __TINC_SYSTEM_H__ */ +#endif