screen: fix gcc-14 build

add missing pty.h header
upstream master has already incorporated this patch
This commit is contained in:
Rudi Heitbaum 2024-05-04 12:30:44 +00:00
parent e8da72c8e4
commit 6c39648c06

View File

@ -0,0 +1,12 @@
diff --git a/pty.c b/pty.c
index 6791fd5..9ef1471 100644
--- a/pty.c
+++ b/pty.c
@@ -30,6 +30,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
+#include <pty.h>
#if defined(__OpenBSD__)
#include <utils.h> /* for openpty() */