[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.179,1.180 _cursesmodule.c,2.55,2.56

Martin v. L?wis loewis@users.sourceforge.net
Sat, 13 Oct 2001 02:00:44 -0700


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

Modified Files:
	socketmodule.c _cursesmodule.c 
Log Message:
Test for __sun instead of __sun__, since SUNWspro only defines the latter;
gcc defines both.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -C2 -d -r1.179 -r1.180
*** socketmodule.c	2001/10/12 18:59:27	1.179
--- socketmodule.c	2001/10/13 09:00:42	1.180
***************
*** 95,99 ****
  #if defined(_AIX) || defined(__osf__)
  #define HAVE_GETHOSTBYNAME_R_3_ARG
! #elif defined(__sun__) || defined(__sgi)
  #define HAVE_GETHOSTBYNAME_R_5_ARG
  #elif defined(linux)
--- 95,99 ----
  #if defined(_AIX) || defined(__osf__)
  #define HAVE_GETHOSTBYNAME_R_3_ARG
! #elif defined(__sun) || defined(__sgi)
  #define HAVE_GETHOSTBYNAME_R_5_ARG
  #elif defined(linux)

Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.55
retrieving revision 2.56
diff -C2 -d -r2.55 -r2.56
*** _cursesmodule.c	2001/09/04 19:34:32	2.55
--- _cursesmodule.c	2001/10/13 09:00:42	2.56
***************
*** 119,123 ****
  #endif
  
! #if defined(sgi) || defined(__sun__)
  #define STRICT_SYSV_CURSES       /* Don't use ncurses extensions */
  typedef chtype attr_t;           /* No attr_t type is available */
--- 119,123 ----
  #endif
  
! #if defined(sgi) || defined(__sun)
  #define STRICT_SYSV_CURSES       /* Don't use ncurses extensions */
  typedef chtype attr_t;           /* No attr_t type is available */