summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-01-08 18:52:39 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-08 18:52:39 -0700
commit0ed392ec025a902207f802c6957ec927abbcd36d (patch)
tree3bcd8a4776ba191471c6c041cd3fafee6e9cfaeb /configure
parent46f92335793e70363c296b4c997da7a808959a49 (diff)
downloadliburing-0ed392ec025a902207f802c6957ec927abbcd36d.tar.gz
liburing-0ed392ec025a902207f802c6957ec927abbcd36d.tar.bz2
Add support for IORING_OP_OPENAT2
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 26 insertions, 0 deletions
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 <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+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