diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-18 02:27:00 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-18 02:27:00 +0000 |
| commit | bcf66657d1fa0947af5254135387927ddd438536 (patch) | |
| tree | 73c1fefcdb53f79290b8b0b8b55992e5ce3de615 /ext/stringio | |
| parent | 4ee1798abfd112cc7253c8b5884c5381046ff862 (diff) | |
| download | ruby-bcf66657d1fa0947af5254135387927ddd438536.tar.gz ruby-bcf66657d1fa0947af5254135387927ddd438536.tar.xz ruby-bcf66657d1fa0947af5254135387927ddd438536.zip | |
* ext/stringio/stringio.c: needs fcntl.h for O_* constants.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio')
| -rw-r--r-- | ext/stringio/stringio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 916b64e0b..a7cdfc2bc 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 |
