Issue 724588: socketmodule doesn't compile on strict POSIX systems (original) (raw)

Issue724588

Created on 2003-04-20 12:42 by marc, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
socketmodule.diff.gz marc,2003-04-20 12:42 socketmodule POSIX patch
Messages (3)
msg15521 - (view) Author: Marc Recht (marc) Date: 2003-04-20 12:42
socketmodule uses the functions: - hstrerror - inet_aton - inet_pton and definitions: - NI_MAXHOST - NI_MAXSERV which aren't defined by IEEE Std 1003.1, 2003 Edition (regarding to http://www.unix.org/single_unix_specification/). The attached patch changes configure.in so that configure tries to take the adress of the functions rather than the autoconf library function check. Because with the later the POSIX/POSIX_C_SOURCE/XOPEN etc definitions are not set. It also changes socketmodule.c to define NI_MAXHOST and NI_MAXSERV if they haven't been defined already. This fixes compilation of socketmodule on: NetBSD 1.6R i386
msg15522 - (view) Author: Marc Recht (marc) Date: 2003-04-20 13:43
Logged In: YES user_id=205 This is for Python 2.3/CVS (20.04.2003).
msg15523 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-05-03 10:13
Logged In: YES user_id=21627 Thanks for the patch. Applied as configure 1.391 configure.in 1.402 pyconfig.h.in 1.77 socketmodule.c 1.264
History
Date User Action Args
2022-04-10 16:08:14 admin set github: 38335
2003-04-20 12:42:36 marc create