]> granicus.if.org Git - strace/commitdiff
tests: fix build with cutting-edge glibc
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 10 Jul 2019 16:12:44 +0000 (16:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 10 Jul 2019 16:12:44 +0000 (16:12 +0000)
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

index 6e14f3ad4a1efe356a5656e2279bca13d1114f9f..570979de6c9019e40c59ae443a55b6e95c73d018 100644 (file)
@@ -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 <fcntl.h>
 # include <sys/stat.h>
 # undef statx_timestamp