|
From: | Alex Naumov |
Subject: | Re: [screen-devel] [PATCH] src/display.c: Fix call to undeclared function chmod |
Date: | Mon, 7 Aug 2023 21:38:35 +0200 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |