diff options
author | Jon Kohler <jon@nutanix.com> | 2022-01-28 09:36:15 -0800 |
---|---|---|
committer | Jon Kohler <jon@nutanix.com> | 2022-01-28 09:36:15 -0800 |
commit | 7ad74b99e5a7d5c1f697b60f11f516bd780d0e6d (patch) | |
tree | 3c2371a052bdb39642fe58e6bec87823426311ab | |
parent | 3cd6fb341a0663ff6141e484fa44c9f3c9692e0b (diff) | |
download | liburing-7ad74b99e5a7d5c1f697b60f11f516bd780d0e6d.tar.gz liburing-7ad74b99e5a7d5c1f697b60f11f516bd780d0e6d.tar.bz2 |
fix statx configure and build on !CONFIG_HAVE_STATX toolchains
Update configure and test/Makefile, such that if !CONFIG_HAVE_STATX will
not generate statx.c test. Without this patch, liburing fails to compile
on an older toolchain that does not have statx available.
Fixes: #516
Signed-off-by: Jon Kohler <jon@nutanix.com>
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | test/Makefile | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -471,7 +471,7 @@ else cat >> $compat_h << EOF EOF fi -if test "$glibc_statx" = "no" && "$statx" = "yes"; then +if [ "$glibc_statx" = "no" ] && [ "$statx" = "yes" ]; then cat >> $compat_h << EOF #include <sys/stat.h> diff --git a/test/Makefile b/test/Makefile index 1d3dc13..b74ba06 100644 --- a/test/Makefile +++ b/test/Makefile @@ -138,7 +138,6 @@ test_srcs := \ sq-poll-share.c \ sqpoll-sleep.c \ sq-space_left.c \ - statx.c \ stdout.c \ submit-link-fail.c \ submit-reuse.c \ |