Blame SOURCES/2000-strace-provide-O_TMPFILE-fallback-definition.patch

b48781
Some buildroots provide version of kernel-headers package that do not yet
b48781
contains O_TMPFILE definition.  Since (looks like) there were none discrepancies
b48781
in O_TMPFILE definition in RHEL, work that around by providing a fallback
b48781
definition of O_TMPFILE.
b48781
Index: strace-5.2/src/open.c
b48781
===================================================================
b48781
--- strace-5.2.orig/src/open.c	2019-07-11 19:51:22.000000000 +0200
b48781
+++ strace-5.2/src/open.c	2019-07-22 17:49:41.508766666 +0200
b48781
@@ -32,6 +32,10 @@
b48781
 #include <linux/openat2.h>
b48781
 #include <linux/fcntl.h>
b48781
 
b48781
+#ifndef O_TMPFILE
b48781
+# define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
b48781
+#endif
b48781
+
b48781
 #include "xlat/open_access_modes.h"
b48781
 #include "xlat/open_mode_flags.h"
b48781
 #include "xlat/open_resolve_flags.h"