[CRIU] [PATCH] files: define O_TMPFILE
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Tue Apr 24 11:27:15 MSK 2018
These fixes compilation on VZ7:
https://ci.openvz.org/job/CRIU/job/CRIU-virtuozzo/job/criu-dev/3605/console
https://jira.sw.ru/browse/PSBM-83713
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
criu/include/fcntl.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/criu/include/fcntl.h b/criu/include/fcntl.h
index ce8abda34..d9c5c5e7b 100644
--- a/criu/include/fcntl.h
+++ b/criu/include/fcntl.h
@@ -38,4 +38,12 @@ struct f_owner_ex {
# define O_PATH 010000000
#endif
+#ifndef __O_TMPFILE
+#define __O_TMPFILE 020000000
+#endif
+
+#ifndef O_TMPFILE
+#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
+#endif
+
#endif /* __CR_ASM_GENERIC_FCNTL_H__ */
--
2.14.3
More information about the CRIU
mailing list