diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 03956ce4d..d00147c74 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <sys/mount.h> | 26 | #include <sys/mount.h> |
27 | #include <sys/wait.h> | 27 | #include <sys/wait.h> |
28 | #include <sys/stat.h> | 28 | #include <sys/stat.h> |
29 | #include <fcntl.h> | ||
30 | #include <dirent.h> | 29 | #include <dirent.h> |
31 | #include <pwd.h> | 30 | #include <pwd.h> |
32 | #include <errno.h> | 31 | #include <errno.h> |
@@ -38,6 +37,11 @@ | |||
38 | #include <net/if.h> | 37 | #include <net/if.h> |
39 | #include <sys/utsname.h> | 38 | #include <sys/utsname.h> |
40 | 39 | ||
40 | #include <fcntl.h> | ||
41 | #ifndef O_PATH | ||
42 | #define O_PATH 010000000 | ||
43 | #endif | ||
44 | |||
41 | #ifdef __ia64__ | 45 | #ifdef __ia64__ |
42 | /* clone(2) has a different interface on ia64, as it needs to know | 46 | /* clone(2) has a different interface on ia64, as it needs to know |
43 | the size of the stack */ | 47 | the size of the stack */ |