summaryrefslogtreecommitdiff
path: root/lib/ext2fs/badblocks.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1997-10-19 23:00:21 +0000
committerTheodore Ts'o <tytso@mit.edu>1997-10-19 23:00:21 +0000
commit1d2ff46ae7533ffd038534b189f272d2a4122e4e (patch)
tree498dba9e1909fbbf16692d71fdf7a77a53fbb75d /lib/ext2fs/badblocks.c
parent44339bdff87584b72a2ade7d3a1426e3335f2167 (diff)
downloade2fsprogs-1d2ff46ae7533ffd038534b189f272d2a4122e4e.tar.gz
Many files:
Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H
Diffstat (limited to 'lib/ext2fs/badblocks.c')
-rw-r--r--lib/ext2fs/badblocks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ext2fs/badblocks.c b/lib/ext2fs/badblocks.c
index 75f6df0a..38e9f6e7 100644
--- a/lib/ext2fs/badblocks.c
+++ b/lib/ext2fs/badblocks.c
@@ -17,8 +17,12 @@
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
+#if HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#if HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#if HAVE_ERRNO_H
#include <errno.h>
#endif