[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.192,1.193

Tim Peters tim_one@users.sourceforge.net
Sun, 04 Nov 2001 18:46:00 -0800


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

Modified Files:
	socketmodule.c 
Log Message:
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++. 


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -C2 -d -r1.192 -r1.193
*** socketmodule.c	2001/11/02 23:34:52	1.192
--- socketmodule.c	2001/11/05 02:45:58	1.193
***************
*** 143,147 ****
  #include <sys/socket.h>
  #include <netinet/in.h>
! #if !(defined(__BEOS__) || defined(__CYGWIN__))
  #include <netinet/tcp.h>
  #endif
--- 143,147 ----
  #include <sys/socket.h>
  #include <netinet/in.h>
! #if !(defined(__BEOS__) || defined(__CYGWIN__) || (defined(PYOS_OS2) && defined(PYCC_VACPP)))
  #include <netinet/tcp.h>
  #endif
***************
*** 150,153 ****
--- 150,156 ----
  #ifdef __BEOS__
  #include <net/netdb.h>
+ #elif defined(PYOS_OS2) && defined(PYCC_VACPP)
+ #include <netdb.h>
+ typedef size_t socklen_t;
  #else
  #ifndef USE_GUSI1