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.
This commit is contained in:
Max Kellermann 2018-02-24 22:42:19 +01:00
parent 31794ac376
commit 666e456551
1 changed files with 2 additions and 1 deletions

View File

@ -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 = ''