From d5b0c4b1f3367b76f1b7af934f99cf1e1cb35b82 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 25 Jan 2010 03:06:06 +0000 Subject: * dln.c, file.c, io.c, signal.c: add __HAIKU__. patched by Alexander von Gluck [ruby-core:27767] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 1982452ed9..5b1431525d 100644 --- a/file.c +++ b/file.c @@ -70,7 +70,7 @@ int flock(int, int); #define lstat stat #endif -#ifdef __BEOS__ /* should not change ID if -1 */ +#if defined(__BEOS__) || defined(__HAIKU__) /* should not change ID if -1 */ static int be_chown(const char *path, uid_t owner, gid_t group) { @@ -95,7 +95,7 @@ be_fchown(int fd, uid_t owner, gid_t group) return fchown(fd, owner, group); } #define fchown be_fchown -#endif /* __BEOS__ */ +#endif /* __BEOS__ || __HAIKU__ */ VALUE rb_cFile; VALUE rb_mFileTest; -- cgit v1.2.3