The attached patch fixes FTBFS on GNU/k*BSD.  The problem happens on GNU/k*BSD
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any
system that does the same.

python fails to build because it doesn't detect gnu pth in pthread
emulation. See C comments in patch for details.

patch taken from http://bugs.debian.org/264315
diff --git a/Misc/NEWS b/Misc/NEWS
index 75ab5cc..9ea0db1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -90,6 +90,9 @@
 - patch #1006629: Define _XOPEN_SOURCE to 500 on Solaris 8/9 to match
   GCC's definition and avoid redefinition warnings.
 
+- Detect pthreads support (provided by gnu pth pthread emulation) on
+  GNU/k*BSD systems.
+
 C API
 -----