summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-18 02:27:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-18 02:27:00 +0000
commit1fff70f8b3d22adfa82f989080ecbdc32480b4ef (patch)
tree73c1fefcdb53f79290b8b0b8b55992e5ce3de615 /ext
parent61566f4b7cb6668d6c52bd472d8c146abe2a522e (diff)
* ext/stringio/stringio.c: needs fcntl.h for O_* constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/stringio/stringio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 916b64e0b6..a7cdfc2bce 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -14,6 +14,11 @@
#include "ruby.h"
#include "rubyio.h"
+#if defined(HAVE_FCNTL_H) || defined(_WIN32)
+#include <fcntl.h>
+#elif defined(HAVE_SYS_FCNTL_H)
+#include <sys/fcntl.h>
+#endif
#define STRIO_EOF FMODE_SYNC