summaryrefslogtreecommitdiff
path: root/file.c
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 /file.c
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
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
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