diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-24 00:17:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-24 00:17:11 +0000 |
commit | 13a935b0baf3990eed76486e0f47c1d574f2f916 (patch) | |
tree | b1e4d0de5ae56c17dfcd3c6e76bc356d6564d6dd /io.c | |
parent | f7847ecb7233402d499febd6414ac34400d7b65c (diff) |
Drop support for BeOS
* beos: Drop support for BeOS now that Haiku is stable.
[Fix GH-1112]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -35,7 +35,7 @@ # include <sys/socket.h> #endif -#if defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__BEOS__) +#if defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) # define NO_SAFE_RENAME #endif @@ -100,12 +100,6 @@ # include <sys/wait.h> /* for WNOHANG on BSD */ #endif -#if defined(__BEOS__) -# ifndef NOFILE -# define NOFILE (OPEN_MAX) -# endif -#endif - #include "ruby/util.h" #ifndef O_ACCMODE @@ -2188,7 +2182,7 @@ remain_size(rb_io_t *fptr) off_t pos; if (fstat(fptr->fd, &st) == 0 && S_ISREG(st.st_mode) -#if defined(__BEOS__) || defined(__HAIKU__) +#if defined(__HAIKU__) && (st.st_dev > 3) #endif ) |