From dc62a93010c52fdba10a8a08e41ebe67d38eed07 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Tue, 24 Apr 2018 11:27:15 +0300 Subject: [PATCH] files: define O_TMPFILE 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 Signed-off-by: Andrei Vagin --- 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__ */