summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 08:14:56 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 08:14:56 +0000
commitb021a435f896aa7a67d64b2bace9b7897214f86e (patch)
tree295e883272b6f6f93c5bb16a83a259fad09fdd99 /io.c
parentedbfabc8b31a75c0f44046b8a3b57c8524f16658 (diff)
downloadruby-b021a435f896aa7a67d64b2bace9b7897214f86e.tar.gz
ruby-b021a435f896aa7a67d64b2bace9b7897214f86e.tar.xz
ruby-b021a435f896aa7a67d64b2bace9b7897214f86e.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/branches/ruby_1_8@9244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/io.c b/io.c
index 7b7a1a787..7f7b02c37 100644
--- a/io.c
+++ b/io.c
@@ -94,6 +94,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;