[PATCH] fsck/main.c: add missing include

Alexander Kanavin alex at linutronix.de
Tue Dec 7 06:14:03 AEDT 2021


Otherwise musl C library builds fail with missing S_IFMT/S_IFDIR
definitions.

Signed-off-by: Alexander Kanavin <alex at linutronix.de>
---
 fsck/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fsck/main.c b/fsck/main.c
index aefa881..ad48e35 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -6,6 +6,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 #include <time.h>
+#include <sys/stat.h>
 #include "erofs/print.h"
 #include "erofs/io.h"
 #include "erofs/decompress.h"
-- 
2.20.1



More information about the Linux-erofs mailing list