aboutsummaryrefslogtreecommitdiff
path: root/lang/python24/files/patch-Modules::socketmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python24/files/patch-Modules::socketmodule.c')
-rw-r--r--lang/python24/files/patch-Modules::socketmodule.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python24/files/patch-Modules::socketmodule.c b/lang/python24/files/patch-Modules::socketmodule.c
new file mode 100644
index 000000000000..a7158db8f9a3
--- /dev/null
+++ b/lang/python24/files/patch-Modules::socketmodule.c
@@ -0,0 +1,13 @@
+--- Modules/socketmodule.c.orig Sun Oct 2 21:49:22 2005
++++ Modules/socketmodule.c Sun Oct 2 21:50:01 2005
+@@ -142,7 +142,9 @@
+
+ /* On systems on which getaddrinfo() is believed to not be thread-safe,
+ (this includes the getaddrinfo emulation) protect access with a lock. */
+-#if defined(WITH_THREAD) && (defined(__APPLE__) || defined(__FreeBSD__) || \
++#include <sys/param.h>
++#if defined(WITH_THREAD) && (defined(__APPLE__) || \
++ (defined(__FreeBSD__) && __FreeBSD_version+0 < 503000) || \
+ defined(__OpenBSD__) || defined(__NetBSD__) || !defined(HAVE_GETADDRINFO))
+ #define USE_GETADDRINFO_LOCK
+ #endif