Fix building unlink_fstat00 unlink test case

Submitted by Adrian Reber on May 9, 2018, 5:08 p.m.

Details

Message ID 1525885707-15846-1-git-send-email-adrian@lisas.de
State Accepted
Series "Fix building unlink_fstat00 unlink test case"
Commit a9e29bc5961a327e451102be24af93e99ec8bb3f
Headers show

Commit Message

Adrian Reber May 9, 2018, 5:08 p.m.
From: Adrian Reber <areber@redhat.com>

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

Patch hide | download patch | download mbox

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

Comments

Andrey Vagin May 9, 2018, 9:39 p.m.
Applied, thanks

On Wed, May 09, 2018 at 05:08:27PM +0000, Adrian Reber wrote:
> From: Adrian Reber <areber@redhat.com>
> 
> Signed-off-by: Adrian Reber <areber@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
> 
> _______________________________________________
> CRIU mailing list
> CRIU@openvz.org
> https://lists.openvz.org/mailman/listinfo/criu