blob: 1c3a4899fc602ef0b79f0cd55aa5647f033468b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
diff -ruN Python-2.4.2.orig/configure.in Python-2.4.2/configure.in
--- Python-2.4.2.orig/configure.in 2005-08-07 23:08:53.000000000 +0200
+++ Python-2.4.2/configure.in 2006-04-26 16:25:03.241669250 +0200
@@ -140,7 +140,7 @@
# On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
# even though select is a POSIX function. Reported by J. Ribbens.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
- OpenBSD/2.* | OpenBSD/3.@<:@0123456@:>@)
+ OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@)
define_xopen_source=no;;
# On Solaris 2.6, sys/wait.h is inconsistent in the usage
# of union __?sigval. Reported by Stuart Bishop.
@@ -1517,9 +1517,16 @@
# only check for sem_ini if thread support is requested
if test "$with_threads" = "yes" -o -z "$with_threads"; then
+ case "$ac_sys_system" in
+ OpenBSD*)
+ LIBS="-pthread ${LIBS}"
+ ;;
+ *)
AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
# posix4 on Solaris 2.6
# pthread (first!) on Linux
+ ;;
+ esac
fi
# check if we need libintl for locale functions
diff -ruN Python-2.4.2.orig/Include/Python.h Python-2.4.2/Include/Python.h
--- Python-2.4.2.orig/Include/Python.h 2004-07-27 17:57:23.000000000 +0200
+++ Python-2.4.2/Include/Python.h 2006-04-26 16:24:15.274671500 +0200
@@ -2,6 +2,11 @@
#define Py_PYTHON_H
/* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
+/* Required on Gentoo/OpenBSD */
+#if defined(__OpenBSD__)
+#include <sys/types.h>
+#endif
+
/* Include nearly all Python header files */
#include "patchlevel.h"
|