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

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