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 | f43d911e29967ed8aa94898f79c4b6554eefc806 (patch) | |
| tree | a51880e1ac70c76c6879edd0032aa2c2ff0f7f49 /ext/stringio | |
| parent | cadf0c5802c9e552a0ad7d0463fff33285bfdc28 (diff) | |
| download | ruby-f43d911e29967ed8aa94898f79c4b6554eefc806.tar.gz ruby-f43d911e29967ed8aa94898f79c4b6554eefc806.tar.xz ruby-f43d911e29967ed8aa94898f79c4b6554eefc806.zip | |
* ext/stringio/stringio.c: needs fcntl.h for O_* constants.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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 84ee3f28a..04c02aef9 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 |
