diff options
author | 2022-10-27 18:26:32 -0700 | |
---|---|---|
committer | 2022-10-27 18:26:32 -0700 | |
commit | ed5595f792b4e6c5e1eb785870b82a5988c109d2 (patch) | |
tree | 13875529581a511330bcf6fa4bd5a29bca6eba28 /src/io | |
parent | 5c8cbf9806ed27e3d50d67bdfacd23fec9434b41 (diff) | |
download | bun-ed5595f792b4e6c5e1eb785870b82a5988c109d2.tar.gz bun-ed5595f792b4e6c5e1eb785870b82a5988c109d2.tar.zst bun-ed5595f792b4e6c5e1eb785870b82a5988c109d2.zip |
Add a stub for io_darwin on linux
cc @sno2 hopefully this helps but i'm not sure
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/io_darwin.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/io/io_darwin.cpp b/src/io/io_darwin.cpp index 74a763812..fff41d373 100644 --- a/src/io/io_darwin.cpp +++ b/src/io/io_darwin.cpp @@ -62,4 +62,16 @@ extern "C" bool io_darwin_schedule_wakeup(mach_port_t waker) { return true; } +#else + +// stub out these symbols +extern "C" int io_darwin_create_machport(unsigned long long wakeup, int fd, + void *wakeup_buffer_, + unsigned long long nbytes) { + return 0; +} + +// stub out these symbols +extern "C" bool io_darwin_schedule_wakeup(void *waker) { return false; } + #endif
\ No newline at end of file |