summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 15:38:48 +0000
committerwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 15:38:48 +0000
commit665787ea4e0cef0157d6f4a6bca65973ce8839be (patch)
treeddfc5f39de95a292040b394698a8292e4eda53f6 /file.c
parent69c8bf73294c1b99389b8e81f7003a88c67ff4cc (diff)
Added FCNTL inclusion to fix a compile error with solaris (backport from r22812)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24028 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 16ef2c9028..543d881298 100644
--- a/file.c
+++ b/file.c
@@ -71,6 +71,10 @@ char *strrchr _((const char*,const char));
#include <sys/mkdev.h>
#endif
+#if defined(HAVE_FCNTL_H)
+#include <fcntl.h>
+#endif
+
#if !defined HAVE_LSTAT && !defined lstat
#define lstat stat
#endif