$NetBSD: patch-xa,v 1.2 2014/11/02 13:31:11 spz Exp $

--- Python/thread_pthread.h.orig	2014-06-30 02:05:47.000000000 +0000
+++ Python/thread_pthread.h
@@ -46,6 +46,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>
