aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/shed/std
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-02-11 21:29:15 +0000
committerMichael Williamson <mike@zwobble.org>2024-02-11 21:29:15 +0000
commita01ee103f9bc0c6defe9ce8cd85651f19f7127bd (patch)
tree8634fd33dde74b4aab1519e1b61bc3343d99606f /runtime/src/shed/std
parent3d4e3f4a54d128a2a280b5adc921f3d95fb963bb (diff)
Create separate lib for patio runtime
Diffstat (limited to 'runtime/src/shed/std')
-rw-r--r--runtime/src/shed/std/unistd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/src/shed/std/unistd.h b/runtime/src/shed/std/unistd.h
new file mode 100644
index 00000000..8f4dc71a
--- /dev/null
+++ b/runtime/src/shed/std/unistd.h
@@ -0,0 +1,14 @@
+#ifndef SHED_STD_UNISTD_H
+#define SHED_STD_UNISTD_H
+
+#ifdef __wasm__
+typedef unsigned long size_t;
+typedef long ssize_t;
+#ifndef NULL
+#define NULL 0
+#endif
+#else
+#include <unistd.h>
+#endif
+
+#endif