diff options
| author | Takeshi Watanabe <[email protected]> | 2017-12-09 18:44:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-14 00:05:23 +0900 |
| commit | 949bf6ca4306125b0ba51d8b09a1f4d642c24753 (patch) | |
| tree | 0c719cb0cfc4bfa1b897892ac47722f9fec1943f /mrbgems/mruby-io/include | |
| parent | 2300c9f7373e3785d36323b5d2820efb40fb1fab (diff) | |
| download | mruby-949bf6ca4306125b0ba51d8b09a1f4d642c24753.tar.gz mruby-949bf6ca4306125b0ba51d8b09a1f4d642c24753.zip | |
Fix socket closing by using `closesocket` API in windows instead.
Diffstat (limited to 'mrbgems/mruby-io/include')
| -rw-r--r-- | mrbgems/mruby-io/include/mruby/ext/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/include/mruby/ext/io.h b/mrbgems/mruby-io/include/mruby/ext/io.h index 8f412fc02..ba088156e 100644 --- a/mrbgems/mruby-io/include/mruby/ext/io.h +++ b/mrbgems/mruby-io/include/mruby/ext/io.h @@ -15,7 +15,8 @@ struct mrb_io { int pid; /* child's pid (for pipes) */ unsigned int readable:1, writable:1, - sync:1; + sync:1, + is_socket:1; }; #define FMODE_READABLE 0x00000001 |
