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:
@@ -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;
@@ -432,6 +433,10 @@ struct open_how {
uint64_t resolve;
};
+EOF
+else cat >> $compat_h << EOF
+#include <linux/openat2.h>
+
EOF
fi
