]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
filefrag.c: fix build problem when using musl libc
authorTheodore Ts'o <tytso@mit.edu>
Thu, 11 Oct 2018 02:24:01 +0000 (22:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Oct 2018 02:24:01 +0000 (22:24 -0400)
Use HAVE_LINUX_FD_H guard since not all libc's or operating systems
provide <linux/fd.h>.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/filefrag.c

index 56f84ed8e8d1094177d1e6103960c4896885babe..1eec146d8b364151eb5191ab3cf91cb278b9d6e7 100644 (file)
@@ -45,7 +45,9 @@ extern int optind;
 #include <sys/stat.h>
 #include <sys/vfs.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_LINUX_FD_H
 #include <linux/fd.h>
+#endif
 #include <ext2fs/ext2fs.h>
 #include <ext2fs/ext2_types.h>
 #include <ext2fs/fiemap.h>