summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-02 12:02:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-02 12:02:22 +0000
commit27475f4dec9a3c694e2b197e1c8f5ddff9a5bf77 (patch)
tree19b48db199baa58939d84dd254a904dc33f863dd
parent3f0060c0426dd468964c3ec07b4c4d56d3894894 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--file.c4
2 files changed, 8 insertions, 0 deletions
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 <akr@fsij.org>
+
+ * file.c: include fcntl.h for O_RDONLY on Solaris.
+
Mon Mar 2 19:43:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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 <sys/mkdev.h>
#endif
+#if defined(HAVE_FCNTL_H)
+#include <fcntl.h>
+#endif
+
#if !defined HAVE_LSTAT && !defined lstat
#define lstat stat
#endif