Compiling 2.5.1 on OpenBSD 4.1
"Martin v. Löwis"
martin at v.loewis.de
Sun Jul 29 12:41:40 EDT 2007
> Thanks Martin. Did I mention this was OpenBSD 4.1 in the original post? Here's the patch:
It may work, but I don't like it. Can you please try this one instead,
and report whether it works?
Thanks,
Martin
Index: configure
===================================================================
--- configure (Revision 56599)
+++ configure (Arbeitskopie)
@@ -1388,6 +1388,14 @@
_ACEOF
+# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
+# also defined. This can be overridden by defining _BSD_SOURCE
+
+cat >>confdefs.h <<\_ACEOF
+#define _BSD_SOURCE 1
+_ACEOF
+
+
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
More information about the Python-list
mailing list