Index: Modules/posixmodule.c =================================================================== --- Modules/posixmodule.c (revision 78265) +++ Modules/posixmodule.c (working copy) @@ -23,6 +23,10 @@ # pragma weak statvfs # pragma weak fstatvfs +/* Monkey patch pyconfig.h */ +#include "pyconfig.h" +#undef _DARWIN_C_SOURCE + #endif /* __APPLE__ */ #define PY_SSIZE_T_CLEAN