From 1aa0d8a2e4165010463c5243fa78c2fd9cc04a38 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 10 Oct 2018 22:24:01 -0400 Subject: [PATCH] filefrag.c: fix build problem when using musl libc Use HAVE_LINUX_FD_H guard since not all libc's or operating systems provide . Signed-off-by: Theodore Ts'o --- misc/filefrag.c | 2 ++ 1 file changed, 2 insertions(+) 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 @@ extern int optind; #include #include #include +#ifdef HAVE_LINUX_FD_H #include +#endif #include #include #include -- 1.8.3.1