[pywin32-checkins] pywin32/win32/src win32file.i,1.105,1.106
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-02-15 23:49:16
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9779/src Modified Files: win32file.i Log Message: Use Wspiapi.h get/freeaddrinfo api so we can be imported on win2k Index: win32file.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32file.i,v retrieving revision 1.105 retrieving revision 1.106 diff -C2 -d -r1.105 -r1.106 *** win32file.i 8 Feb 2009 15:51:42 -0000 1.105 --- win32file.i 15 Feb 2009 23:49:10 -0000 1.106 *************** *** 41,44 **** --- 41,45 ---- #endif #include "Ws2tcpip.h" + #include "Wspiapi.h" // for WspiapiGetAddrInfo/WspiapiFreeAddrInfo #endif *************** *** 1868,1872 **** hints.ai_socktype = prot_info.iSocketType; hints.ai_protocol = prot_info.iProtocol; ! error = getaddrinfo(hptr, pptr, &hints, &res); if (error) { --- 1869,1873 ---- hints.ai_socktype = prot_info.iSocketType; hints.ai_protocol = prot_info.iProtocol; ! error = WspiapiGetAddrInfo(hptr, pptr, &hints, &res); if (error) { *************** *** 1878,1882 **** if (!PyWinObject_AsOVERLAPPED(obOverlapped, &pOverlapped)) { ! freeaddrinfo(res); return NULL; } --- 1879,1883 ---- if (!PyWinObject_AsOVERLAPPED(obOverlapped, &pOverlapped)) { ! WspiapiFreeAddrInfo(res); return NULL; } *************** *** 1887,1891 **** rc=WSAGetLastError(); Py_END_ALLOW_THREADS; ! freeaddrinfo(res); if (rc==0 || rc == ERROR_IO_PENDING) return Py_BuildValue("ii", rc, sent); --- 1888,1892 ---- rc=WSAGetLastError(); Py_END_ALLOW_THREADS; ! WspiapiFreeAddrInfo(res); if (rc==0 || rc == ERROR_IO_PENDING) return Py_BuildValue("ii", rc, sent); |