setxattr03: define _GNU_SOURCE to fix build on musl
PATCH 1/1 setxattr03: define _GNU_SOURCE to fix build on musl
From: Petr Vorel <[email protected]>
musl defines loff_t in <fcntl.h> (already included) and guard it under _GNU_SOURCE.
NOTE: glibc and others define it in <sys/types.h>
--- testcases/kernel/syscalls/setxattr/setxattr03.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/setxattr/setxattr03.c +1 -0
@@ -13,6 +13,7 @@* -1 and set errno to EPERM */ +#define _GNU_SOURCE#include "config.h" #include <sys/ioctl.h> #include <sys/types.h>
Signature · 1 line
2.23.0
PATCH 1/1 setxattr03: define _GNU_SOURCE to fix build on musl
Hi!
Quoted 2 lines
musl defines
loff_tin <fcntl.h> (already included) and guard it under_GNU_SOURCE.
NOTE: glibc and others define it in <sys/types.h>
I would say that this is obvious enough to go in without a review, acked nevertheless.
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH 1/1 setxattr03: define _GNU_SOURCE to fix build on musl
Hi Cyril, Jan,
Quoted 6 lines
Hi!
Quoted 2 lines
musl defines
loff_tin <fcntl.h> (already included) and guard it under_GNU_SOURCE.
NOTE: glibc and others define it in <sys/types.h>I would say that this is obvious enough to go in without a review, acked nevertheless.
Thanks for review, pushed.
Sorry for taking your time with obvious fix, next time I'll push it.
Kind regards,
Petr
PATCH 1/1 setxattr03: define _GNU_SOURCE to fix build on musl
In reply to Petr Vorel----- Original Message -----
Quoted 7 lines
From: Petr Vorel <[email protected]>
musl defines
loff_tin <fcntl.h> (already included) and guard it under_GNU_SOURCE.
NOTE: glibc and others define it in <sys/types.h>Signed-off-by Petr Vorel <[email protected]>
ACK