[Python-checkins] python/dist/src/Modules socketmodule.c,1.263,1.264

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 03 May 2003 03:12:48 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv22931/Modules

Modified Files:
	socketmodule.c 
Log Message:
Patch #724588: Check whether the address of hstrerror and inet_pton can
be taken, and define NI_MAX{HOST|SERV} if necessary.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.263
retrieving revision 1.264
diff -C2 -d -r1.263 -r1.264
*** socketmodule.c	3 May 2003 09:14:53 -0000	1.263
--- socketmodule.c	3 May 2003 10:12:45 -0000	1.264
***************
*** 294,297 ****
--- 294,307 ----
  #endif
  
+ /*
+  * Constants for getnameinfo()
+  */
+ #if !defined(NI_MAXHOST)
+ #define NI_MAXHOST 1025
+ #endif
+ #if !defined(NI_MAXSERV)
+ #define NI_MAXSERV 32
+ #endif
+ 
  /* XXX There's a problem here: *static* functions are not supposed to have
     a Py prefix (or use CapitalizedWords).  Later... */