summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-01 10:05:16 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-01 10:19:54 -0600
commite2934e144409e6afc2678ef2558641755cbd4c43 (patch)
tree1a888c417bf55525414a25074d8d50fdf4f25b14 /configure
parentf6c8044fd0d4fb8b8b2136d3329b38576a706308 (diff)
downloadliburing-e2934e144409e6afc2678ef2558641755cbd4c43.tar.gz
liburing-e2934e144409e6afc2678ef2558641755cbd4c43.tar.bz2
Switch to 32/64-bit agnostic timeout format
We made a kernel change to support timeouts properly on 32-bit archs, update liburing to use __kernel_timespec instead of the differently sized timespec. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index 0b185b8..81e4bcc 100755
--- a/configure
+++ b/configure
@@ -181,8 +181,29 @@ if compile_prog "" "" "__kernel_rwf_t"; then
fi
print_config "__kernel_rwf_t" "$__kernel_rwf_t"
+##########################################
+# check for __kernel_timespec
+__kernel_timespec="no"
+cat > $TMPC << EOF
+#include <linux/time.h>
+int main(int argc, char **argv)
+{
+ struct __kernel_timespec ts;
+ ts.tv_sec = 0;
+ ts.tv_nsec = 1;
+ return 0;
+}
+EOF
+if compile_prog "" "" "__kernel_timespec"; then
+ __kernel_timespec="yes"
+fi
+print_config "__kernel_timespec" "$__kernel_timespec"
+
#############################################################################
if test "$__kernel_rwf_t" = "yes"; then
output_sym "CONFIG_HAVE_KERNEL_RWF_T"
fi
+if test "$__kernel_timespec" = "yes"; then
+ output_sym "CONFIG_HAVE_KERNEL_TIMESPEC"
+fi