From 184766e02e4d140fcbad714b12bc810708bff05b Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 20 Sep 2005 08:14:56 +0000 Subject: * io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead. [ruby-dev:27185] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index f3badc966a..b335eae750 100644 --- a/io.c +++ b/io.c @@ -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; -- cgit v1.2.3