* [LTP] [PATCH] unlink09: Add _GNU_SOURCE feature macro to workaround the compile error
@ 2024-04-23 8:37 Yang Xu via ltp
2024-06-19 13:43 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: Yang Xu via ltp @ 2024-04-23 8:37 UTC (permalink / raw)
To: ltp
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.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
testcases/kernel/syscalls/unlink/unlink09.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/syscalls/unlink/unlink09.c b/testcases/kernel/syscalls/unlink/unlink09.c
index cc4b4a07e..1472e9134 100644
--- a/testcases/kernel/syscalls/unlink/unlink09.c
+++ b/testcases/kernel/syscalls/unlink/unlink09.c
@@ -13,6 +13,8 @@
* - EROFS when target file is on a read-only filesystem.
*/
+#define _GNU_SOURCE
+
#include <sys/ioctl.h>
#include "tst_test.h"
#include "lapi/fs.h"
--
2.39.3
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] unlink09: Add _GNU_SOURCE feature macro to workaround the compile error
2024-04-23 8:37 [LTP] [PATCH] unlink09: Add _GNU_SOURCE feature macro to workaround the compile error Yang Xu via ltp
@ 2024-06-19 13:43 ` Petr Vorel
0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2024-06-19 13:43 UTC (permalink / raw)
To: Yang Xu; +Cc: ltp
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
> +
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-19 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-23 8:37 [LTP] [PATCH] unlink09: Add _GNU_SOURCE feature macro to workaround the compile error Yang Xu via ltp
2024-06-19 13:43 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox