Make mode_t available for the declaration of _getpty().
diff --git a/Include/pyport.h b/Include/pyport.h
index f4daebc..b9a699b 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -96,7 +96,7 @@
 #endif
 
 #ifdef HAVE__GETPTY
-/* Unchecked */
+#include <sys/types.h>		/* we need to import mode_t */
 extern char * _getpty(int *, int, mode_t, int);
 #endif