--- btrfsck.c.orig 2009-02-15 14:40:07.000000000 +0100 +++ btrfsck.c 2009-02-15 12:32:04.000000000 +0100 @@ -21,6 +21,9 @@ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> + +#include <sys/stat.h> + #include "kerncompat.h" #include "ctree.h" #include "disk-io.h"