]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Define _BSD_TYPES. Fixes #1005308.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 12 Aug 2004 13:44:45 +0000 (13:44 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 12 Aug 2004 13:44:45 +0000 (13:44 +0000)
Misc/NEWS
configure
configure.in
pyconfig.h.in

index 6ae47d2e9aec5bf743386b8a54a0f0fe92dc89e4..d47fc96f99c2a882c7ba689bd463045bd3f21f95 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -28,6 +28,8 @@ Core and builtins
 Extension modules
 -----------------
 
+- Bug #1005308: Define _BSD_TYPES.
+
 - Patch #1005568: Use _SC_PAGESIZE on Irix in resourcemoudle.
 
 - Patch #924294: Do no check for AF_INET6 if it is not defined.
index da89218cffcd2bd8e5bac73ea4c8edefe7f091bb..d6e73e3f94cb7a3aca954f56b890aba5f3abeb05 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.427.4.12 .
+# From configure.in Revision: 1.427.4.13 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57 for python 2.3.
 #
@@ -1349,6 +1349,14 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
 
+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
+# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
+
+cat >>confdefs.h <<\_ACEOF
+#define _BSD_TYPES 1
+_ACEOF
+
+
 define_xopen_source=yes
 
 # Arguments passed to configure.
index a9ea12635e71488adae993b56aab7aeeeaed984b..be90583d4b52eb53e6b062c0389435637dca93c1 100644 (file)
@@ -50,6 +50,10 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
 # them.
 AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
 
+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
+# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
+AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
+
 define_xopen_source=yes
 
 # Arguments passed to configure.
index 3eeede5f2bec886b40a11b1096a4964d3d7e3074..3f4425a42006db9a3dbe94d8a0b515845ea54907 100644 (file)
 # undef _ALL_SOURCE
 #endif
 
+/* Define on Irix to enable u_int */
+#undef _BSD_TYPES
+
 /* This must be set to 64 on some systems to enable large file support. */
 #undef _FILE_OFFSET_BITS