From: Dmitry V. Levin Date: Tue, 24 May 2016 01:29:38 +0000 (+0000) Subject: tests/file_ioctl.c: fix build on systems without X-Git-Tag: v4.12~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b730d4a0f080db318acc80cbea6e4a3aceb6def;p=strace tests/file_ioctl.c: fix build on systems without * tests/file_ioctl.c: Include "tests.h" first. Skip the test if [!HAVE_LINUX_FIEMAP_H]. --- diff --git a/tests/file_ioctl.c b/tests/file_ioctl.c index 3264b903..e8950dfa 100644 --- a/tests/file_ioctl.c +++ b/tests/file_ioctl.c @@ -1,11 +1,13 @@ -#include -#include -#include -#include #include "tests.h" -#include "xlat.h" -#include "xlat/fiemap_flags.h" +#ifdef HAVE_LINUX_FIEMAP_H + +# include +# include +# include +# include +# include "xlat.h" +# include "xlat/fiemap_flags.h" static void test_fiemap(void) @@ -31,3 +33,9 @@ main(int argc, char *argv[]) return 0; } + +#else + +SKIP_MAIN_UNDEFINED("HAVE_LINUX_FIEMAP_H") + +#endif