OS/2 EMX port changes (Include part of patch #450267):
  Include/
    osdefs.h  // EMX promotes Un*x path separators
    pyport.h
diff --git a/Include/pyport.h b/Include/pyport.h
index 8c54729..271ec43 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -157,6 +157,9 @@
 #endif
 
 #ifndef DONT_HAVE_SYS_STAT_H
+#if defined(PYOS_OS2) && defined(PYCC_GCC)
+#include <sys/types.h>
+#endif
 #include <sys/stat.h>
 #elif defined(HAVE_STAT_H)
 #include <stat.h>