summaryrefslogtreecommitdiff
path: root/btrfsck.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@earthworm.de>2010-09-09 11:05:12 +0800
committerChris Mason <chris.mason@oracle.com>2010-09-23 20:26:49 -0400
commit34915ad27b7db0336560350fa89e340cdb4b8663 (patch)
tree9b9beca6350e3699247fe3987f087099192e561b /btrfsck.c
parent659d37c68d0676dcb9a9990bdbe61b98f11b0246 (diff)
add missing include for btrfsck.c
compiling btrfs-progs from current git I get an error in btrfsck.c about undefined references. The attached patch adds an include for sys/stat.h which fixes the problem for me. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'btrfsck.c')
-rw-r--r--btrfsck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btrfsck.c b/btrfsck.c
index 6f2a0d09..d8e353e8 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include "kerncompat.h"
#include "ctree.h"
#include "disk-io.h"