From 47769c94fd62c7fd8654dbc6e0cf66141fa3689c Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 9 Jun 2024 12:38:55 +0800 Subject: [PATCH] fix: haiku has changed AT_FDCWD from -1 to -100 --- src/unix/haiku/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index dd2e129bf75cc..edb58a2bde6d5 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -706,7 +706,7 @@ pub const F_RDLCK: ::c_int = 0x0040; pub const F_UNLCK: ::c_int = 0x0200; pub const F_WRLCK: ::c_int = 0x0400; -pub const AT_FDCWD: ::c_int = -1; +pub const AT_FDCWD: ::c_int = -100; pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x01; pub const AT_SYMLINK_FOLLOW: ::c_int = 0x02; pub const AT_REMOVEDIR: ::c_int = 0x04;