aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/std
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/std')
-rw-r--r--runtime/src/std/unistd.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/src/std/unistd.h b/runtime/src/std/unistd.h
new file mode 100644
index 00000000..df0b9dcb
--- /dev/null
+++ b/runtime/src/std/unistd.h
@@ -0,0 +1,13 @@
+#ifndef SHED_STD_UNISTD_H
+#define SHED_STD_UNISTD_H
+
+#ifdef __WASM__
+#include <stdint.h>
+typedef uint32_t size_t;
+typedef int32_t ssize_t;
+#define NULL 0
+#else
+#include <unistd.h>
+#endif
+
+#endif