From: Petr Vorel Date: Wed, 16 Oct 2019 23:30:01 +0200 Subject: [LTP] [PATCH 1/1] setxattr03: define _GNU_SOURCE to fix build on musl Message-ID: <20191016213001.23047-1-petr.vorel@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it From: Petr Vorel musl defines loff_t in (already included) and guard it under _GNU_SOURCE. NOTE: glibc and others define it in Signed-off-by: Petr Vorel --- testcases/kernel/syscalls/setxattr/setxattr03.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/syscalls/setxattr/setxattr03.c b/testcases/kernel/syscalls/setxattr/setxattr03.c index bb511d5ba..58ee0f880 100644 --- a/testcases/kernel/syscalls/setxattr/setxattr03.c +++ b/testcases/kernel/syscalls/setxattr/setxattr03.c @@ -13,6 +13,7 @@ * -1 and set errno to EPERM */ +#define _GNU_SOURCE #include "config.h" #include #include -- 2.23.0