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

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