From e5e12a967b324058d88bb031956496c015fe28d8 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 10 Jul 2019 16:12:44 +0000 Subject: [PATCH] tests: fix build with cutting-edge glibc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the following compilation error: In file included from statx.c:44: xstatx.c:47:16: error: ‘struct libc_statx’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] * tests/xstatx.c (struct statx): New forward declaration. --- tests/xstatx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/xstatx.c b/tests/xstatx.c index 6e14f3ad..570979de 100644 --- a/tests/xstatx.c +++ b/tests/xstatx.c @@ -46,6 +46,7 @@ typedef off_t libc_off_t; # define stat64 libc_stat64 # define statx libc_statx # define statx_timestamp libc_statx_timestamp +struct statx; # include # include # undef statx_timestamp -- 2.40.0