screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [PATCH] src/display.c: Fix call to undeclared function ch


From: Brahmajit Das
Subject: [screen-devel] [PATCH] src/display.c: Fix call to undeclared function chmod
Date: Sun, 6 Aug 2023 18:57:47 +0000

First discovered on gentoo musl+llvm profile. The chmod function comes
from the header file sys/stat.h which was not included in the source
file display.c, and thus the error. This patch should fix the build
error.

Bug: https://bugs.gentoo.org/894562
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
---
 src/display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/display.c b/src/display.c
index 0ec6c33..4a1679a 100644
--- a/src/display.c
+++ b/src/display.c
@@ -31,6 +31,7 @@
 #include "display.h"
 
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <signal.h>
 #include <fcntl.h>
 #include <poll.h>
-- 
2.41.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]