aboutsummaryrefslogtreecommitdiff
path: root/src/io/io_darwin.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-27 18:26:32 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-27 18:26:32 -0700
commited5595f792b4e6c5e1eb785870b82a5988c109d2 (patch)
tree13875529581a511330bcf6fa4bd5a29bca6eba28 /src/io/io_darwin.cpp
parent5c8cbf9806ed27e3d50d67bdfacd23fec9434b41 (diff)
downloadbun-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/io_darwin.cpp')
-rw-r--r--src/io/io_darwin.cpp12
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