[Python-checkins] python/dist/src/Modules socketmodule.c,1.200.6.9,1.200.6.10

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Wed, 13 Nov 2002 18:22:37 -0800


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

Modified Files:
      Tag: release22-maint
	socketmodule.c 
Log Message:
Fix SF # 505427, socket module fails to build on HPUX10

h_errno is not defined on HPUX with the 2.2 build env't
(ie, _XOPEN_SOURCE_EXTENDED is not defined)


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.200.6.9
retrieving revision 1.200.6.10
diff -C2 -d -r1.200.6.9 -r1.200.6.10
*** socketmodule.c	27 Sep 2002 08:51:20 -0000	1.200.6.9
--- socketmodule.c	14 Nov 2002 02:22:34 -0000	1.200.6.10
***************
*** 143,146 ****
--- 143,151 ----
  #endif
  
+ /* This declaration is required for HPUX 10 */
+ #if defined(__hpux) && !defined(h_errno)
+ extern int h_errno;
+ #endif
+ 
  /* Headers needed for inet_ntoa() and inet_addr() */
  #ifdef __BEOS__