summaryrefslogtreecommitdiff
blob: 8e4f6ac3d33640548a15d45ec4514a77a793fc6f (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
31
From 2ac662b01de904802da4e84d0738e47bf573efde Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Mon, 6 Dec 2021 20:14:03 +0100
Subject: [PATCH 2/2] fsck/main.c: add missing include

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

Link: https://lore.kernel.org/r/20211206191403.1435229-1-alex@linutronix.de
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
---
 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.34.1