diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-02 12:02:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-02 12:02:22 +0000 |
commit | 27475f4dec9a3c694e2b197e1c8f5ddff9a5bf77 (patch) | |
tree | 19b48db199baa58939d84dd254a904dc33f863dd /file.c | |
parent | 3f0060c0426dd468964c3ec07b4c4d56d3894894 (diff) | |
download | ruby-27475f4dec9a3c694e2b197e1c8f5ddff9a5bf77.tar.gz |
* 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |