git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
98f60af
Branches
Tags
master
keks-overlay.git
app-misc
screen
files
screen-4.9.1-add-missing-pty.h-header.patch
update screen
Hanno Böck
commited
98f60af
at 2026-06-25 11:45:22
screen-4.9.1-add-missing-pty.h-header.patch
Blame
History
Raw
https://bugs.gentoo.org/953896 pty.h is necessary on some Linux, but it isn't in POSIX, so it breaks systems like macOS, *BSD, HPUX, AIX and Solaris. Basically everywhere not-Linux, so add guard to only apply on Linux. --- a/pty.c +++ b/pty.c @@ -29,6 +29,9 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#if defined(__linux__) || defined(__linux) || defined(linux) || defined(__GNU__) +#include <pty.h> +#endif #include <signal.h> #if defined(__OpenBSD__)