pkgsrc/lang/python27/patches/patch-xa
drochner 232c121ca5 avoid POSIX semaphores on NetBSD -- at least on -current they cause
serious misbehavior (access to closed file descriptors, fd leaks)
which makes eg xentools completely unusable
bump PKGREV
2012-08-14 18:19:01 +00:00

14 lines
481 B
Text

$NetBSD: patch-xa,v 1.1 2012/08/14 18:19:02 drochner Exp $
--- Python/thread_pthread.h.orig 2012-03-30 13:06:51.000000000 +0000
+++ Python/thread_pthread.h
@@ -34,6 +34,9 @@
we need to add 0 to make it work there as well. */
#if (_POSIX_SEMAPHORES+0) == -1
#define HAVE_BROKEN_POSIX_SEMAPHORES
+#elif defined(__NetBSD__)
+/* XXX accesses to closed file descriptors, needs debugging */
+#define HAVE_BROKEN_POSIX_SEMAPHORES
#else
#include <semaphore.h>
#include <errno.h>