diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-20 08:14:56 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-20 08:14:56 +0000 |
| commit | 476d22613c02bd61f9aaaaa07f80cc5bdec2e66b (patch) | |
| tree | 8505ba013b9041737e6c8f46d433c3ce9a47d0be | |
| parent | 0e5ff7e617465a1c785833a7fad31184104fb210 (diff) | |
| download | ruby-476d22613c02bd61f9aaaaa07f80cc5bdec2e66b.tar.gz ruby-476d22613c02bd61f9aaaaa07f80cc5bdec2e66b.tar.xz ruby-476d22613c02bd61f9aaaaa07f80cc5bdec2e66b.zip | |
* io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead.
[ruby-dev:27185]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | io.c | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Sep 20 17:14:10 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> + + * io.c: PIPE_BUF is not defined in BeOS. use _POSIX_PIPE_BUF instead. + [ruby-dev:27185] + Tue Sep 20 15:39:40 2005 why the lucky stiff <why@ruby-lang.org> * ext/syck/emitter.c (syck_scan_scalar): prevent indicators from @@ -91,6 +91,14 @@ extern void Init_File(void); # error off_t is bigger than long, but you have no long long... #endif +#ifndef PIPE_BUF +# ifdef _POSIX_PIPE_BUF +# define PIPE_BUF _POSIX_PIPE_BUF +# else +# define PIPE_BUF 512 /* is this ok? */ +# endif +#endif + VALUE rb_cIO; VALUE rb_eEOFError; VALUE rb_eIOError; |
