]> granicus.if.org Git - python/commit
Use an explicit macro SOCKETCLOSE which expands to closesocket (on
authorGuido van Rossum <guido@python.org>
Fri, 21 Apr 2000 20:33:00 +0000 (20:33 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Apr 2000 20:33:00 +0000 (20:33 +0000)
commit2dd8dddef412c64692f2ba6eb297411a00ff5d29
treefb6237a48ea61f31445763c4e38b667587c27bda
parentace88aebbbbb5c96eb3dd88308d03d3d3b9c73e5
Use an explicit macro SOCKETCLOSE which expands to closesocket (on
Windows), soclose (on OS2), or to close (everywhere else).

Hopefully this fixes a new compilation error that I suddenly get on
Windows because the macro definition for close -> closesocket
apparently was done before including io.h, which contains a prototype
for close.  (No idea why this wasn't an error before.)
Modules/socketmodule.c