aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-01-19 14:38:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-21 11:00:02 +0000
commit3c379b243b26dd1cce8b5f5da0bc06eba775e740 (patch)
treebfa2fe7e15e050b83d2b368cce0263d0443dec11
parentMerge branch 'stacktrace' (diff)
main: correct header for mode macros
main.c:13:10: fatal error: 'sys/sysinfo.h' file not found #include <sys/sysinfo.h> ^~~~~~~~~~~~~~~ main.c:122:28: error: use of undeclared identifier 'S_IRUSR' S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) { ^ main.c:122:38: error: use of undeclared identifier 'S_IWUSR' S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) { ^ main.c:122:48: error: use of undeclared identifier 'S_IRGRP' S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) { ^ main.c:122:58: error: use of undeclared identifier 'S_IROTH' S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) { ^
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2775a50d..c0dad5e3 100644
--- a/main.c
+++ b/main.c
@@ -10,7 +10,7 @@
#include <unistd.h>
#include <sys/types.h>
-#include <sys/sysinfo.h>
+#include <sys/stat.h>
#include <sys/utsname.h>
#include <fcntl.h>