blob: 0c9d64c82c1fb0d416dc8e08af96a7bfa2f2fe82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From e30ab2d73a21bc55511cbedbb9ae603246dbfcd1 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 16 May 2024 23:10:00 -0700
Subject: [PATCH] include missing pty.h header for openpty()
On musl this problem is unearthed
Fix
./main.c: In function 'get_pty':
./main.c:3123:14: error: implicit declaration of function 'openpty'; did you mean 'openat'? [-Wimplicit-function-declaration]
3123 | result = openpty(pty, &opened_tty, ttydev, NULL, NULL);
| ^~~~~~~
| openat
Upstream-Status: Submitted [sent to dickey@invisible-island.net]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
main.c | 1 +
1 file changed, 1 insertion(+)
--- a/main.c
+++ b/main.c
@@ -89,6 +89,7 @@
#define RES_OFFSET(field) XtOffsetOf(XTERM_RESOURCE, field)
+#include <pty.h>
#include <xterm.h>
#include <version.h>
#include <graphics.h>
|