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

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