add missing include for btrfsck.c
authorChristian Hesse <mail@earthworm.de>
Thu, 9 Sep 2010 03:05:12 +0000 (11:05 +0800)
committerChris Mason <chris.mason@oracle.com>
Fri, 24 Sep 2010 00:26:49 +0000 (20:26 -0400)
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>
btrfsck.c

index 6f2a0d0..d8e353e 100644 (file)
--- 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"