From f43d911e29967ed8aa94898f79c4b6554eefc806 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 18 Nov 2004 02:27:00 +0000 Subject: * 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 --- ext/stringio/stringio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/stringio') 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 +#elif defined(HAVE_SYS_FCNTL_H) +#include +#endif #define STRIO_EOF FMODE_SYNC -- cgit