Jack Jansen, Mac patch:

If we have stat.h include it if we don't have sys/stat.h
diff --git a/Python/getmtime.c b/Python/getmtime.c
index 55ec5a3..80fe7b5 100644
--- a/Python/getmtime.c
+++ b/Python/getmtime.c
@@ -16,8 +16,14 @@
 #include "config.h"
 
 #include <stdio.h>
+#ifndef DONT_HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
+#ifndef DONT_HAVE_SYS_STAT_H
 #include <sys/stat.h>
+#elif defined(HAVE_STAT_H)
+#include <stat.h>
+#endif
 
 time_t
 PyOS_GetLastModificationTime(path, fp)