diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-04-09 09:58:59 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-09 09:58:59 -0600 |
commit | 802b9a245d0fe210f3181ff74a1df05a6bd3afb8 (patch) | |
tree | 70060d34d13d081210eebd26554a1b7806ef3d0b /test | |
parent | 3d70675e33ba476274b86c378e5cd2195a861879 (diff) | |
download | liburing-802b9a245d0fe210f3181ff74a1df05a6bd3afb8.tar.gz liburing-802b9a245d0fe210f3181ff74a1df05a6bd3afb8.tar.bz2 |
configure: check for struct statx
If not there, don't build the test program test/statx
Fixes: https://github.com/axboe/liburing/issues/101
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index f8baa46..ff4d4b8 100644 --- a/test/Makefile +++ b/test/Makefile @@ -18,7 +18,7 @@ all_targets += poll poll-cancel ring-leak fsync io_uring_setup io_uring_register poll-link accept-link fixed-link poll-cancel-ton teardowns \ poll-many b5837bd5311d-test accept-test d77a67ed5f27-test \ connect 7ad0e4b2f83c-test submit-reuse fallocate open-close \ - file-update statx accept-reuse poll-v-poll fadvise madvise \ + file-update accept-reuse poll-v-poll fadvise madvise \ short-read openat2 probe shared-wq personality eventfd \ send_recv eventfd-ring across-fork sq-poll-kthread splice \ lfs-openat lfs-openat-write @@ -29,6 +29,10 @@ ifneq ($(MAKECMDGOALS),clean) include ../config-host.mak endif +ifdef CONFIG_HAVE_STATX +all_targets += statx +endif + all: $(all_targets) %: %.c @@ -46,11 +50,15 @@ test_srcs := poll.c poll-cancel.c ring-leak.c fsync.c io_uring_setup.c \ accept-link.c fixed-link.c poll-cancel-ton.c teardowns.c poll-many.c \ b5837bd5311d-test.c accept-test.c d77a67ed5f27-test.c connect.c \ 7ad0e4b2f83c-test.c submit-reuse.c fallocate.c open-close.c \ - file-update.c statx.c accept-reuse.c poll-v-poll.c fadvise.c \ + file-update.c accept-reuse.c poll-v-poll.c fadvise.c \ madvise.c short-read.c openat2.c probe.c shared-wq.c \ personality.c eventfd.c eventfd-ring.c across-fork.c sq-poll-kthread.c \ splice.c lfs-openat.c lfs-openat-write.c +ifdef CONFIG_HAVE_STATX +test_srcs += statx.c +endif + test_objs := $(patsubst %.c,%.ol,$(test_srcs)) 35fa71a030ca-test: XCFLAGS = -lpthread |