summaryrefslogtreecommitdiffstats
path: root/rubyio.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-19 16:59:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-19 16:59:11 +0000
commit12bec49093666b9350f566f50339144d5f92e9e5 (patch)
tree2db9083082e24f1742da09ce7899a7427f965ae9 /rubyio.h
parentc57202b8b4a3e48855bd687dff294bf28376ef9a (diff)
downloadruby-12bec49093666b9350f566f50339144d5f92e9e5.tar.gz
ruby-12bec49093666b9350f566f50339144d5f92e9e5.tar.xz
ruby-12bec49093666b9350f566f50339144d5f92e9e5.zip
* string.c (str_gsub): internal buffer should not be listed by
ObjectSpace.each_object() by String#gsub. [ruby-dev:24931] * lib/cgi/session.rb (CGI::Session::FileStore::initialize): raise exception if data corresponding to session specified from the client does not exist. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r--rubyio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rubyio.h b/rubyio.h
index 3ae67b276..200232939 100644
--- a/rubyio.h
+++ b/rubyio.h
@@ -16,6 +16,10 @@
#include <stdio.h>
#include <errno.h>
+#if defined(HAVE_STDIO_EXT_H)
+#include <stdio_ext.h>
+#endif
+
typedef struct OpenFile {
FILE *f; /* stdio ptr for read/write */
FILE *f2; /* additional ptr for rw pipes */