Skip to content

Commit 27ec06f

Browse files
committed
Define O_PATH and O_NOFOLLOW for Android
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
1 parent 54b8db6 commit 27ec06f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lxc/utils.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@
4545
#include "log.h"
4646
#include "lxclock.h"
4747

48+
#ifndef O_PATH
49+
#define O_PATH 010000000
50+
#endif
51+
52+
#ifndef O_NOFOLLOW
53+
#define O_NOFOLLOW 00400000
54+
#endif
55+
4856
lxc_log_define(lxc_utils, lxc);
4957

5058
/*

0 commit comments

Comments
 (0)