summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f00b2ffc80..0d2e628257 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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;