$NetBSD: patch-pyconfig.h.in,v 1.1 2011/12/16 17:04:18 hans Exp $ --- pyconfig.h.in.orig 2009-10-27 13:30:12.000000000 +0100 +++ pyconfig.h.in 2011-11-13 14:37:13.053045656 +0100 @@ -1036,7 +1036,9 @@ #undef _REENTRANT /* Define to the level of X/Open that your system supports */ +#if !defined(__sun) || (defined(__sun) && !defined(_XOPEN_SOURCE)) #undef _XOPEN_SOURCE +#endif /* Define to activate Unix95-and-earlier features */ #undef _XOPEN_SOURCE_EXTENDED