X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhave.h;h=d1dd91d7faf19f7729c5246bba98d233c761d00c;hb=b83f62e0a9b4ca58b47749eec43b34f0ea04cfbb;hp=faa4c9e0f38be54d7d9448b08646577ccba5e046;hpb=d10834e92015f1e0e5bf74e03b161b3a5dc363fb;p=tinc diff --git a/src/have.h b/src/have.h index faa4c9e0..d1dd91d7 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-2016 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,11 +21,9 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_HAVE_H__ -#define __TINC_HAVE_H__ - #ifdef HAVE_MINGW -#define WINVER WindowsXP +#define WINVER 0x0600 +#define _WIN32_WINNT 0x0600 #define WIN32_LEAN_AND_MEAN #endif @@ -57,6 +58,10 @@ /* Include system specific headers */ +#ifdef HAVE_STDDEF_H +#include +#endif + #ifdef HAVE_SYSLOG_H #include #endif @@ -78,6 +83,10 @@ #include #endif +#ifdef HAVE_SYS_MMAN_H +#include +#endif + #ifdef HAVE_SYS_WAIT_H #include #endif @@ -213,4 +222,4 @@ #define SLASH "/" #endif -#endif /* __TINC_SYSTEM_H__ */ +#endif