mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #19 from schmurfy/solaris_flock
raise an error for flock on solaris
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user