# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # patch-Modules::socketmodule.c # patch-configure # patch-configure.in # echo x - patch-Modules::socketmodule.c sed 's/^X//' >patch-Modules::socketmodule.c << 'END-of-patch-Modules::socketmodule.c' X--- Modules/socketmodule.c Sun Nov 7 16:24:25 2004 X+++ Modules/socketmodule.c Mon Sep 12 13:46:18 2005 X@@ -146,6 +146,13 @@ X defined(__OpenBSD__) || defined(__NetBSD__) || !defined(HAVE_GETADDRINFO)) X #define USE_GETADDRINFO_LOCK X #endif X+/* FreeBSD 5.3 and later has multithreaded getaddrinfo(). */ X+#ifdef HAVE_SYS_PARAM_H X+#include X+#endif X+#if defined(__FreeBSD__) && __FreeBSD_version >= 503000 X+#undef USE_GETADDRINFO_LOCK X+#endif X X #ifdef USE_GETADDRINFO_LOCK X #define ACQUIRE_GETADDRINFO_LOCK PyThread_acquire_lock(netdb_lock, 1); END-of-patch-Modules::socketmodule.c echo x - patch-configure sed 's/^X//' >patch-configure << 'END-of-patch-configure' X--- configure X+++ configure X@@ -4548,10 +4548,11 @@ X X X X+ X for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \ X libintl.h ncurses.h poll.h pthread.h \ X stropts.h termios.h thread.h \ X-unistd.h utime.h \ X+unistd.h utime.h sys/param.h \ X sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ X sys/modem.h \ X sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ END-of-patch-configure echo x - patch-configure.in sed 's/^X//' >patch-configure.in << 'END-of-patch-configure.in' X--- configure.in X+++ configure.in X@@ -970,7 +970,7 @@ X AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \ X libintl.h ncurses.h poll.h pthread.h \ X stropts.h termios.h thread.h \ X-unistd.h utime.h \ X+unistd.h utime.h sys/param.h \ X sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ X sys/modem.h \ X sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ END-of-patch-configure.in exit