commit:     df2788666f786b7416a3a7f931b8b2bf07fe9c3d
Author:     Sungjoon Moon <sumoon <AT> seoulsaram <DOT> org>
AuthorDate: Wed May 14 14:49:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May 15 07:40:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df278866

app-misc/screen: Add missing pty.h header

Closes: https://bugs.gentoo.org/953896

Source:
 - https://patchwork.ozlabs.org/project/buildroot/patch/ZrWionLijDXHPUjW <AT> 
waldemar-brodkorb.de/#3360344
 - https://lists.buildroot.org/pipermail/buildroot/2024-August/760074.html

Signed-off-by: Sungjoon Moon <sumoon <AT> seoulsaram.org>
Part-of: https://github.com/gentoo/gentoo/pull/42084
Closes: https://github.com/gentoo/gentoo/pull/42084
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../screen/files/screen-4.9.1-add-missing-pty.h-header.patch | 12 ++++++++++++
 app-misc/screen/screen-4.9.1-r1.ebuild                       |  1 +
 2 files changed, 13 insertions(+)

diff --git a/app-misc/screen/files/screen-4.9.1-add-missing-pty.h-header.patch 
b/app-misc/screen/files/screen-4.9.1-add-missing-pty.h-header.patch
new file mode 100644
index 000000000000..127cbf915da4
--- /dev/null
+++ b/app-misc/screen/files/screen-4.9.1-add-missing-pty.h-header.patch
@@ -0,0 +1,12 @@
+diff --git a/src/pty.c b/src/pty.c
+index 6791fd5..093273d 100644
+--- a/src/pty.c
++++ b/src/pty.c
+@@ -29,6 +29,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <pty.h>
+ #include <signal.h>
+ 
+ #if defined(__OpenBSD__)

diff --git a/app-misc/screen/screen-4.9.1-r1.ebuild 
b/app-misc/screen/screen-4.9.1-r1.ebuild
index 074cf1385712..d8b6030acde1 100644
--- a/app-misc/screen/screen-4.9.1-r1.ebuild
+++ b/app-misc/screen/screen-4.9.1-r1.ebuild
@@ -34,6 +34,7 @@ PATCHES=(
        # Don't use utempter even if it is found on the system.
        "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
        "${FILESDIR}"/${PN}-4.9.1-utmp-exit.patch
+       "${FILESDIR}"/${PN}-4.9.1-add-missing-pty.h-header.patch
 )
 
 src_prepare() {

Reply via email to