[LTP] [PATCH] syscalls/statx06.c: Fix compiler errors on old distros

Cyril Hrubis chrubis@suse.cz
Tue Nov 20 11:16:16 CET 2018


Hi!
> --- a/testcases/kernel/syscalls/statx/statx06.c
> +++ b/testcases/kernel/syscalls/statx/statx06.c
> @@ -36,6 +36,9 @@
>  #include <stdio.h>
>  #include "tst_test.h"
>  #include "lapi/stat.h"
> +#include "lapi/mount.h"
> +#include "lapi/fcntl.h"
> +#include "lapi/posix_clocks.h"
>  #include "tst_safe_clocks.h"
>  #include "tst_safe_macros.h"
>  #include "tst_timer.h"

I had to move the lapi headers down so that they are included after the
sys ones (especially sys/mount.h), othewrise the test would fail to
compile if these definitions were present in the respective sys headers.

Pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list