[LTP] [PATCH] unlink09: Add _GNU_SOURCE feature macro to workaround the compile error
Petr Vorel
pvorel@suse.cz
Wed Jun 19 15:43:28 CEST 2024
Hi Yang Xu,
> In CI environment, unlink09 compiling failed on alpine/latest because loff_t
> type is not declared. Add _GNU_SOURCE feature macro to enable GNU extension
> to solve the problem.
For a record, this has been fixed by b4970ae94 ("lapi/fs: Replace loff_t with long long") [1]
thus closing this in patchwork as handled elsewhere.
Kind regards,
Petr
[1] https://github.com/linux-test-project/ltp/commit/b4970ae949d15b4b05b81b5ba72bef12d59dcf2d
...
> +++ b/testcases/kernel/syscalls/unlink/unlink09.c
> @@ -13,6 +13,8 @@
> * - EROFS when target file is on a read-only filesystem.
> */
> +#define _GNU_SOURCE
> +
More information about the ltp
mailing list