files: define O_TMPFILE

Submitted by Pavel Tikhomirov on April 24, 2018, 8:27 a.m.

Details

Message ID 20180424082715.3437-1-ptikhomirov@virtuozzo.com
State Accepted
Series "files: define O_TMPFILE"
Commit 08e5fe2560417bd08e31f7bd99801db2685fcba9
Headers show

Commit Message

Pavel Tikhomirov April 24, 2018, 8:27 a.m.
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@virtuozzo.com>
---
 criu/include/fcntl.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch hide | download patch | download mbox

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__ */