pkgsrc/lang/python27/patches/patch-Python_thread__pthread.h
adam 1487712e3d python: pkgsrc changes
- Fix buidling curses (consistent across platforms)
- Fix finding libraries with ctypes.util.find_library
- Enable spwd module on Linux
- Cleanup
2018-06-17 19:21:21 +00:00

14 lines
499 B
C

$NetBSD: patch-Python_thread__pthread.h,v 1.1 2018/06/17 19:21:21 adam Exp $
--- Python/thread_pthread.h.orig 2014-12-10 15:59:59.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>