Merge pull request #19 from schmurfy/solaris_flock

raise an error for flock on solaris
This commit is contained in:
Tomoyuki Sahara
2014-04-29 00:45:08 +09:00
+3 -1
View File
@@ -276,7 +276,9 @@ mrb_file__gethome(mrb_state *mrb, mrb_value klass)
mrb_value
mrb_file_flock(mrb_state *mrb, mrb_value self)
{
#if !defined(sun)
#if defined(sun)
mrb_raise(mrb, E_RUNTIME_ERROR, "flock is not supported on Illumos/Solaris");
#else
mrb_int operation;
int fd;