]> granicus.if.org Git - strace/commit
tests: robustify statx test
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jul 2019 17:46:47 +0000 (17:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jul 2019 17:46:47 +0000 (17:46 +0000)
commit6d63fdc1bd06806e07f186e1135714b6a201d84d
tree3acd1b5bac60cbd4e67efde7b2b2a0c34539d52c
parent3c1e8ac55cb1385a75641095179cef906d482cc4
tests: robustify statx test

Do not assume that <linux/stat.h> defines struct statx.

* configure.ac (AC_CHECK_TYPES): Check for struct statx in
<linux/stat.h>.
* tests/statx.c: Conditionalize on HAVE_STRUCT_STATX along with
__NR_statx.
configure.ac
tests/statx.c