Index: screen-4.9.1/pty.c
===================================================================
--- screen-4.9.1.orig/pty.c
+++ screen-4.9.1/pty.c
@@ -35,6 +35,10 @@
 #include <utils.h>  /* for openpty() */
 #endif
 
+#ifdef __GNU__
+#include <pty.h>
+#endif
+
 #include "config.h"
 #include "screen.h"
 
