diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-15 12:31:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-15 12:31:18 +0900 |
| commit | 49d97d60514a43f7b0d6cd584ee89a3fc0449b0f (patch) | |
| tree | e3d703bd62d45d3c93455c862044590bb495217d | |
| parent | 484577670f5474113f8f1535b7125a0eebe7a9de (diff) | |
| download | mruby-49d97d60514a43f7b0d6cd584ee89a3fc0449b0f.tar.gz mruby-49d97d60514a43f7b0d6cd584ee89a3fc0449b0f.zip | |
Add `pread/pwrite` support on `__MACH__` (MacOS) in addition to `__unix__`.
| -rw-r--r-- | mrbgems/mruby-io/include/mruby/ext/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/include/mruby/ext/io.h b/mrbgems/mruby-io/include/mruby/ext/io.h index da76ac769..dfff8e0e0 100644 --- a/mrbgems/mruby-io/include/mruby/ext/io.h +++ b/mrbgems/mruby-io/include/mruby/ext/io.h @@ -18,7 +18,7 @@ extern "C" { #if defined(MRB_WITHOUT_IO_PREAD_PWRITE) # undef MRB_WITH_IO_PREAD_PWRITE #elif !defined(MRB_WITH_IO_PREAD_PWRITE) -# if defined(__unix__) +# if defined(__unix__) || defined(__MACH__) # define MRB_WITH_IO_PREAD_PWRITE # endif #endif |
