summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/xorg-app/xterm/0001-include-missing-pty.h-header-for-openpty.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-app/xterm/0001-include-missing-pty.h-header-for-openpty.patch')
-rw-r--r--meta-oe/recipes-graphics/xorg-app/xterm/0001-include-missing-pty.h-header-for-openpty.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/xorg-app/xterm/0001-include-missing-pty.h-header-for-openpty.patch b/meta-oe/recipes-graphics/xorg-app/xterm/0001-include-missing-pty.h-header-for-openpty.patch
new file mode 100644
index 0000000000..0c9d64c82c
--- /dev/null
+++ b/meta-oe/recipes-graphics/xorg-app/xterm/0001-include-missing-pty.h-header-for-openpty.patch
@@ -0,0 +1,30 @@
1From e30ab2d73a21bc55511cbedbb9ae603246dbfcd1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 16 May 2024 23:10:00 -0700
4Subject: [PATCH] include missing pty.h header for openpty()
5
6On musl this problem is unearthed
7
8Fix
9./main.c: In function 'get_pty':
10./main.c:3123:14: error: implicit declaration of function 'openpty'; did you mean 'openat'? [-Wimplicit-function-declaration]
11 3123 | result = openpty(pty, &opened_tty, ttydev, NULL, NULL);
12 | ^~~~~~~
13 | openat
14
15Upstream-Status: Submitted [sent to dickey@invisible-island.net]
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 main.c | 1 +
19 1 file changed, 1 insertion(+)
20
21--- a/main.c
22+++ b/main.c
23@@ -89,6 +89,7 @@
24
25 #define RES_OFFSET(field) XtOffsetOf(XTERM_RESOURCE, field)
26
27+#include <pty.h>
28 #include <xterm.h>
29 #include <version.h>
30 #include <graphics.h>