| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #if defined(FLETCH_TARGET_OS_MACOS) | 5 #if defined(FLETCH_TARGET_OS_MACOS) |
| 6 | 6 |
| 7 #include "src/vm/event_handler.h" | 7 #include "src/vm/event_handler.h" |
| 8 | 8 |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <sys/event.h> | 10 #include <sys/event.h> |
| 11 #include <sys/types.h> | 11 #include <sys/types.h> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 if (result == -1) return Failure::index_out_of_bounds(); | 140 if (result == -1) return Failure::index_out_of_bounds(); |
| 141 // Only if the call to kevent succeeded do we actually have a reference to the | 141 // Only if the call to kevent succeeded do we actually have a reference to the |
| 142 // port. | 142 // port. |
| 143 port->IncrementRef(); | 143 port->IncrementRef(); |
| 144 return process->program()->null_object(); | 144 return process->program()->null_object(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace fletch | 147 } // namespace fletch |
| 148 | 148 |
| 149 #endif // defined(FLETCH_TARGET_OS_MACOS) | 149 #endif // defined(FLETCH_TARGET_OS_MACOS) |
| OLD | NEW |