From 27475f4dec9a3c694e2b197e1c8f5ddff9a5bf77 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 2 Mar 2009 12:02:22 +0000 Subject: [PATCH] * file.c: include fcntl.h for O_RDONLY on Solaris. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ file.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 210efdc8b8..bbb7bf6dd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 2 21:01:36 2009 Tanaka Akira + + * file.c: include fcntl.h for O_RDONLY on Solaris. + Mon Mar 2 19:43:02 2009 Nobuyoshi Nakada * lib/uri/common.rb (URI::Parser#escape): escaped string is ascii diff --git a/file.c b/file.c index f6c4286f5a..860aff056b 100644 --- a/file.c +++ b/file.c @@ -62,6 +62,10 @@ int flock(int, int); #include #endif +#if defined(HAVE_FCNTL_H) +#include +#endif + #if !defined HAVE_LSTAT && !defined lstat #define lstat stat #endif