summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-04 09:21:20 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-04 09:21:20 +0000
commit12d0248c7da0785d53882f9ad810ec1aa1a4f292 (patch)
tree6a33ef35c5ba65493c7408405c96064b5cd3a28f /file.c
parent7a28371f584336671693148a7337d30b47215b86 (diff)
merges r22707 from trunk into ruby_1_9_1.
-- * file.c: include fcntl.h for O_RDONLY on Solaris. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@22761 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 642ea82499..6a7cabae79 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