diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-10-01 10:05:16 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-01 10:19:54 -0600 |
commit | e2934e144409e6afc2678ef2558641755cbd4c43 (patch) | |
tree | 1a888c417bf55525414a25074d8d50fdf4f25b14 /configure | |
parent | f6c8044fd0d4fb8b8b2136d3329b38576a706308 (diff) | |
download | liburing-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-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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 |