filefrag.c: fix build problem when using musl libc
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>
diff --git a/misc/filefrag.c b/misc/filefrag.c
index 56f84ed..1eec146 100644
--- a/misc/filefrag.c
+++ b/misc/filefrag.c
@@ -45,7 +45,9 @@
#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>