From: Theodore Ts'o Date: Thu, 11 Oct 2018 02:24:01 +0000 (-0400) Subject: filefrag.c: fix build problem when using musl libc X-Git-Tag: v1.44.5~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aa0d8a2e4165010463c5243fa78c2fd9cc04a38;p=thirdparty%2Fe2fsprogs.git 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 --- diff --git a/misc/filefrag.c b/misc/filefrag.c index 56f84ed8e..1eec146d8 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