[LTP] [PATCH v2] syscalls/memfd_create: Fix build failure when HAVE_FALLOCATE not defined

Cyril Hrubis chrubis@suse.cz
Thu Mar 30 16:04:21 CEST 2017


Hi!
Pushed with cosmetic changes and ack from Jan, thanks.

> diff --git a/testcases/kernel/syscalls/memfd_create/memfd_create_common.c b/testcases/kernel/syscalls/memfd_create/memfd_create_common.c
> index 8612db7..ddf9f05 100644
> --- a/testcases/kernel/syscalls/memfd_create/memfd_create_common.c
> +++ b/testcases/kernel/syscalls/memfd_create/memfd_create_common.c
> @@ -18,7 +18,6 @@
>  #include <sys/types.h>
>  #include <sys/syscall.h>
>  #include <sys/uio.h>
> -#include <lapi/fallocate.h>
>  #include <lapi/fcntl.h>
>  #include <lapi/memfd.h>
>  #include <errno.h>
> @@ -28,7 +27,8 @@
>  #include <unistd.h>
>  
>  #define TST_NO_DEFAULT_MAIN
> -#include <tst_test.h>
> +#include "tst_test.h"
> +#include "lapi/fallocate.h"

I've moved the rest of the lapi headers down here so they stay grouped
toghether.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list