[Python-Dev] ANSIfication breaks socketmodule compile...
Mark Favas
m.favas@per.dem.csiro.au
Mon, 24 Jul 2000 00:58:54 +0800
The recent bout of ANSIfication seems to have raised a couple of issues
with socketmodule:
1) It now won't compile on Tru64, because the declaration of
"gethostname" on line 114 conflicts with that in the system unistd.h
header file. 114 declares the second parameter as size_t, unistd.h
declares it as int (unless the macro _XOPEN_SOURCE_EXTENDED is defined,
but that's another can of worms...). The simple fix here is to add
another !(defined(__osf__) to the preceding #if line.
2) There'll be an issue on those platforms where the second parameter
_is_ declared as type size_t, because the gethostname function is called
at line 1402 with the second parameter cast to an int, rather than a
size_t...
--
Email - m.favas@per.dem.csiro.au Mark C Favas
Phone - +61 8 9333 6268, 0418 926 074 CSIRO Exploration & Mining
Fax - +61 8 9383 9891 Private Bag No 5, Wembley
WGS84 - 31.95 S, 115.80 E Western Australia 6913