From 77d814a1ef7cf228636e4408cb1d84350f854fe6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 12 Dec 2019 12:34:50 -0700 Subject: [PATCH] t/io_uring: check for CONFIG_HAVE_GETTID Signed-off-by: Jens Axboe --- t/io_uring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/io_uring.c b/t/io_uring.c index 62dee805..c2e5e098 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -133,10 +133,12 @@ static int io_uring_enter(struct submitter *s, unsigned int to_submit, min_complete, flags, NULL, 0); } +#ifndef CONFIG_HAVE_GETTID static int gettid(void) { return syscall(__NR_gettid); } +#endif static unsigned file_depth(struct submitter *s) { -- 2.25.1