aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ext2fs/badblocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext2fs/badblocks.c')
-rw-r--r--lib/ext2fs/badblocks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ext2fs/badblocks.c b/lib/ext2fs/badblocks.c
index 8a405012..f286747b 100644
--- a/lib/ext2fs/badblocks.c
+++ b/lib/ext2fs/badblocks.c
@@ -13,6 +13,9 @@
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
#include <linux/ext2_fs.h>