From 666e456551f963e62ce6c84f5047d6a8fe983c84 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Feb 2018 22:42:19 +0100 Subject: [PATCH] win32/build.py: add -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 configure.ac sets this, but this wasn't used for compiling third-party libraries. This setting however is important for libnfs, which adds fallback definitions for POLLIN and POLLOUT with bogus values. --- win32/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32/build.py b/win32/build.py index 45c5dfa4c..8b0a3fc71 100755 --- a/win32/build.py +++ b/win32/build.py @@ -58,7 +58,8 @@ class CrossGccToolchain: self.cflags = common_flags self.cxxflags = common_flags - self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + \ + ' -DWINVER=0x0600 -D_WIN32_WINNT=0x0600' self.ldflags = '-L' + os.path.join(install_prefix, 'lib') self.libs = ''