]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 6 Mar 2001 12:09:07 +0000 (12:09 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 6 Mar 2001 12:09:07 +0000 (12:09 +0000)
acconfig.h
config.h.in
configure.in

index 045e454d68b03a299439928f647f1be21ce46c9c..3f7829f54470dd082913db481e2f7bedbf515b7c 100644 (file)
@@ -25,6 +25,9 @@
 /* Define to `long' if <time.h> doesn't define.  */
 #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 9c0483f02fedcba96f8e2cb7e92839e348057488..a390fa3faf04200376edb75647c496228c5b3f67 100644 (file)
@@ -90,6 +90,9 @@
 /* Define to `long' if <time.h> doesn't define.  */
 #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 92a5b4605bdaedf170b0ade752c818839986c142..0818a9cd653c6840c2d17ee4c0106feca78de495 100644 (file)
@@ -194,8 +194,13 @@ Monterey*)
     case $CC in
     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)
 AC_MSG_CHECKING(LIBRARY)
 if test -z "$LIBRARY"