From 7d0617a836b33010a6cab9a5df6534ba2202e51f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 6 Mar 2005 13:31:26 +0000 Subject: [PATCH] Er, the last change was quite wrong. Correctly define O_NOTRAVERSE to O_NOFOLLOW, if available. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11596 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/add-ons/kernel/file_systems/fs_shell/compat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 9265f12d8d..5567b21bcc 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 @@ -24,8 +24,10 @@ // don't include that file #ifndef __BEOS__ + #define _ERRORS_H // don't include , we use the platform + #define dprintf build_platform_dprintf #include #undef dprintf @@ -210,9 +212,9 @@ struct my_stat { // O_NOTRAVERSE is called O_NOFOLLOW under Linux #ifndef O_NOTRAVERSE #ifdef O_NOFOLLOW - #define O_NOTRAVERSE 0 + #define O_NOTRAVERSE O_NOFOLLOW #else - #define O_NOFOLLOW 0 + #define O_NOTRAVERSE 0 #endif #endif #ifndef S_IUMSK