blob: c3b3c0bd568ddc48be2602159232901a50e938c3 [file] [log] [blame]
From 821778286843b8e88d0cd73a97d20b5a2fff8ea1 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Mon, 6 Dec 2021 20:12:54 +0100
Subject: [PATCH] fsck/main.c: add missing include
Otherwise musl C library builds fail with missing S_IFMT/S_IFDIR
definitions.
Upstream-Status: Submitted [email to linux-erofs@lists.ozlabs.org,hsiangkao@linux.alibaba.com]
Signed-off-by: Alexander Kanavin <alex@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"