X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhave.h;h=d1dd91d7faf19f7729c5246bba98d233c761d00c;hb=08f1e0cd33812f9d972dd7c59021443a8d02d0e0;hp=318d549f295eb897720e120cad3dece6c6415b30;hpb=0cd2953d4136a72ddb38b54054f63d497b0e5526;p=tinc diff --git a/src/have.h b/src/have.h index 318d549f..d1dd91d7 100644 --- a/src/have.h +++ b/src/have.h @@ -4,7 +4,7 @@ /* 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 @@ -22,7 +22,8 @@ */ #ifdef HAVE_MINGW -#define WINVER WindowsXP +#define WINVER 0x0600 +#define _WIN32_WINNT 0x0600 #define WIN32_LEAN_AND_MEAN #endif @@ -82,6 +83,10 @@ #include #endif +#ifdef HAVE_SYS_MMAN_H +#include +#endif + #ifdef HAVE_SYS_WAIT_H #include #endif