[New-bugs-announce] [issue1464] inet_pton redefined while building with windows SDK 6.0

zouguangxian report at bugs.python.org
Mon Nov 19 17:32:18 CET 2007


New submission from zouguangxian:

in Microsoft SDKs\Windows\v6.0A\Include\ws2tcpip.h, inet_pton was 
defined when NTDDI_VERSION >= NTDDI_LONGHORN with the following lines:

#if (NTDDI_VERSION >= NTDDI_LONGHORN)
WINSOCK_API_LINKAGE
INT
WSAAPI
inet_pton(
    __in                                INT             Family,
    __in                                PCSTR           pszAddrString,
    __out_bcount(sizeof(IN6_ADDR))      PVOID           pAddrBuf
    );
... ...

so in socketmodule.c, inet_pton should not be defined in such a 
situation.

----------
components: Library (Lib)
files: socketmodule.c.patch
messages: 57639
nosy: weck
severity: normal
status: open
title: inet_pton redefined while building with windows SDK 6.0
type: compile error
versions: Python 2.6
Added file: http://bugs.python.org/file8775/socketmodule.c.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1464>
__________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: socketmodule.c.patch
Url: http://mail.python.org/pipermail/new-bugs-announce/attachments/20071119/8409f005/attachment.txt 


More information about the New-bugs-announce mailing list