Commit 077f39bd authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

Merge pull request #19 from schmurfy/solaris_flock

raise an error for flock on solaris
parents 5aeb99ad 9a1b25bd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment