summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-10-06 12:08:45 -0600
committerJens Axboe <axboe@kernel.dk>2021-10-06 12:08:45 -0600
commit326ed975d49e8c7bff071abe8e7ac5e0c0196622 (patch)
treed275273841f6ce79c56d45edbe4f2d30c83725d9
parenta9895111798af2003f5298abb1d5bdaf11ca549e (diff)
downloadliburing-326ed975d49e8c7bff071abe8e7ac5e0c0196622.tar.gz
liburing-326ed975d49e8c7bff071abe8e7ac5e0c0196622.tar.bz2
configure: add openat2.h for open_how and RESOLVE_* flags
struct open_how and friends reside in the openat2.h header, so include that for the test case. Fixes: https://github.com/axboe/liburing/issues/360 Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index a7caa07..92f51bd 100755
--- a/configure
+++ b/configure
@@ -268,6 +268,7 @@ cat > $TMPC << EOF
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
+#include <linux/openat2.h>
int main(int argc, char **argv)
{
struct open_how how;
@@ -433,6 +434,10 @@ struct open_how {
};
EOF
+else cat >> $compat_h << EOF
+#include <linux/openat2.h>
+
+EOF
fi
cat >> $compat_h << EOF