From: Dmitry V. Levin Date: Wed, 10 Jul 2019 16:12:44 +0000 (+0000) Subject: tests: fix build with cutting-edge glibc X-Git-Tag: v5.2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5e12a967b324058d88bb031956496c015fe28d8;p=strace tests: fix build with cutting-edge glibc 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. --- 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