| Index: lib/io/system_macos.dart
|
| diff --git a/lib/io/system_macos.dart b/lib/io/system_macos.dart
|
| index a5c851eff2400cc1ec769b2e2da3e4aeb4d767a3..bf36de7723a77fc2bd1c95395d4c370e4b5ddade 100644
|
| --- a/lib/io/system_macos.dart
|
| +++ b/lib/io/system_macos.dart
|
| @@ -24,9 +24,9 @@ class MacOSAddrInfo extends AddrInfo {
|
| return getWord(offset);
|
| }
|
|
|
| - Foreign get ai_addr {
|
| + ForeignMemory get ai_addr {
|
| int offset = _addrlenOffset + wordSize * 2;
|
| - return new Foreign.fromAddress(getWord(offset), ai_addrlen);
|
| + return new ForeignMemory.fromAddress(getWord(offset), ai_addrlen);
|
| }
|
|
|
| AddrInfo get ai_next {
|
| @@ -66,9 +66,12 @@ class KEvent extends Struct {
|
| }
|
|
|
| class MacOSSystem extends PosixSystem {
|
| - static final Foreign _kevent = Foreign.lookup("kevent");
|
| - static final Foreign _lseekMac = Foreign.lookup("lseek");
|
| - static final Foreign _openMac = Foreign.lookup("open");
|
| + static final ForeignFunction _kevent =
|
| + ForeignLibrary.standard.lookup("kevent");
|
| + static final ForeignFunction _lseekMac =
|
| + ForeignLibrary.standard.lookup("lseek");
|
| + static final ForeignFunction _openMac =
|
| + ForeignLibrary.standard.lookup("open");
|
|
|
| final KEvent _kEvent = new KEvent();
|
|
|
| @@ -78,8 +81,8 @@ class MacOSSystem extends PosixSystem {
|
|
|
| int get SO_REUSEADDR => 0x4;
|
|
|
| - Foreign get _lseek => _lseekMac;
|
| - Foreign get _open => _openMac;
|
| + ForeignFunction get _lseek => _lseekMac;
|
| + ForeignFunction get _open => _openMac;
|
|
|
| int _setEvents(bool read, bool write) {
|
| int eh = System.eventHandler;
|
|
|