From 0ed392ec025a902207f802c6957ec927abbcd36d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 8 Jan 2020 18:52:39 -0700 Subject: Add support for IORING_OP_OPENAT2 Signed-off-by: Jens Axboe --- configure | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 7393cb4..54cf5f6 100755 --- a/configure +++ b/configure @@ -209,6 +209,29 @@ if compile_prog "" "" "__kernel_timespec"; then fi print_config "__kernel_timespec" "$__kernel_timespec" +########################################## +# check for open_how +open_how="no" +cat > $TMPC << EOF +#include +#include +#include +#include +int main(int argc, char **argv) +{ + struct open_how how; + how.flags = 0; + how.mode = 0; + how.resolve = 0; + return 0; +} +EOF +if compile_prog "" "" "open_how"; then + open_how="yes" +fi +print_config "open_how" "$open_how" + + ############################################################################# if test "$__kernel_rwf_t" = "yes"; then @@ -217,5 +240,8 @@ fi if test "$__kernel_timespec" = "yes"; then output_sym "CONFIG_HAVE_KERNEL_TIMESPEC" fi +if test "$open_how" = "yes"; then + output_sym "CONFIG_HAVE_OPEN_HOW" +fi echo "CC=$cc" >> $config_host_mak -- cgit v1.2.3