[Python-checkins] CVS: python/dist/src acconfig.h,1.44,1.45 config.h.in,2.88,2.89 configure.in,1.209,1.210

Martin v. L?wis loewis@users.sourceforge.net
Tue, 06 Mar 2001 04:09:09 -0800


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

Modified Files:
	acconfig.h config.h.in configure.in 
Log Message:
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.


Index: acconfig.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/acconfig.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** acconfig.h	2001/02/27 04:45:05	1.44
--- acconfig.h	2001/03/06 12:09:07	1.45
***************
*** 26,29 ****
--- 26,32 ----
  #undef clock_t
  
+ /* Defined on Solaris to see additional function prototypes. */
+ #undef __EXTENSIONS__
+ 
  /* Define if getpgrp() must be called as getpgrp(0). */
  #undef GETPGRP_HAVE_ARG

Index: config.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/config.h.in,v
retrieving revision 2.88
retrieving revision 2.89
diff -C2 -r2.88 -r2.89
*** config.h.in	2001/02/27 04:45:05	2.88
--- config.h.in	2001/03/06 12:09:07	2.89
***************
*** 91,94 ****
--- 91,97 ----
  #undef clock_t
  
+ /* Defined on Solaris to see additional function prototypes. */
+ #undef __EXTENSIONS__
+ 
  /* Define if getpgrp() must be called as getpgrp(0). */
  #undef GETPGRP_HAVE_ARG

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.209
retrieving revision 1.210
diff -C2 -r1.209 -r1.210
*** configure.in	2001/03/06 05:52:16	1.209
--- configure.in	2001/03/06 12:09:07	1.210
***************
*** 195,199 ****
--- 195,204 ----
      cc) CC="$CC -Wl,-Bexport";;
      esac;;
+ SunOS*)
+     # Some functions have a prototype only with that define, e.g. confstr
+     AC_DEFINE(__EXTENSIONS__)
+     ;;
  esac
+ 
  
  AC_SUBST(LIBRARY)