From 875d890122a5066026c0cce10c4035d6ecddd99f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 6 Mar 2005 13:07:41 +0000 Subject: [PATCH] O_NOTRAVERSE is called O_NOFOLLOW under Linux. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11593 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../add-ons/kernel/file_systems/fs_shell/compat.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/tests/add-ons/kernel/file_systems/fs_shell/compat.h b/src/tests/add-ons/kernel/file_systems/fs_shell/compat.h index 568e20ca9d..9265f12d8d 100644 --- a/src/tests/add-ons/kernel/file_systems/fs_shell/compat.h +++ b/src/tests/add-ons/kernel/file_systems/fs_shell/compat.h @@ -206,7 +206,19 @@ struct my_stat { #define MY_SEEK_SET 0 #define MY_SEEK_CUR 1 #define MY_SEEK_END 2 - + +// O_NOTRAVERSE is called O_NOFOLLOW under Linux +#ifndef O_NOTRAVERSE + #ifdef O_NOFOLLOW + #define O_NOTRAVERSE 0 + #else + #define O_NOFOLLOW 0 + #endif +#endif +#ifndef S_IUMSK + #define S_IUMSK (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) +#endif + #ifdef __BEOS__