[pypy-svn] pypy default: Mingw compiler does not provide replacement functions for getnameinfo() &co

amauryfa commits-noreply at bitbucket.org
Mon Feb 7 17:53:55 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r41676:a1b1dc7fbbba
Date: 2011-02-07 17:51 +0100
http://bitbucket.org/pypy/pypy/changeset/a1b1dc7fbbba/

Log:	Mingw compiler does not provide replacement functions for
	getnameinfo() &co Enable these functions provided by the Windows
	kernel since Windows XP.

	pypy compiled with mingw won't run on Windows 2000, we probably
	don't care.

diff --git a/pypy/rlib/_rsocket_rffi.py b/pypy/rlib/_rsocket_rffi.py
--- a/pypy/rlib/_rsocket_rffi.py
+++ b/pypy/rlib/_rsocket_rffi.py
@@ -69,6 +69,10 @@
     else: # MINGW
         includes = ('stdint.h',)
         header_lines.extend([
+            '''\
+            #ifndef _WIN32_WINNT
+            #define _WIN32_WINNT 0x0501
+            #endif''',
             '#define SIO_RCVALL             _WSAIOW(IOC_VENDOR,1)',
             '#define SIO_KEEPALIVE_VALS     _WSAIOW(IOC_VENDOR,4)',
             '#define RCVALL_OFF             0',


More information about the Pypy-commit mailing list