[CRIU] [PATCH] Fix building unlink_fstat00 unlink test case

Adrian Reber adrian at lisas.de
Wed May 9 20:08:27 MSK 2018


From: Adrian Reber <areber at redhat.com>

Signed-off-by: Adrian Reber <areber at redhat.com>
---
 test/zdtm/static/unlink_fstat00.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/zdtm/static/unlink_fstat00.c b/test/zdtm/static/unlink_fstat00.c
index faafb1b..79ea902 100644
--- a/test/zdtm/static/unlink_fstat00.c
+++ b/test/zdtm/static/unlink_fstat00.c
@@ -9,6 +9,14 @@
 
 #include "zdtmtst.h"
 
+#ifndef __O_TMPFILE
+#define __O_TMPFILE 020000000
+#endif
+
+#ifndef O_TMPFILE
+#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
+#endif
+
 const char *test_doc	= "Open, unlink, change size, seek, migrate, check size";
 
 #ifdef UNLINK_FSTAT04
-- 
1.8.3.1



More information about the CRIU mailing list