aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/std
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/std')
-rw-r--r--runtime/src/std/unistd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/src/std/unistd.h b/runtime/src/std/unistd.h
index df0b9dcb..6a761e6f 100644
--- a/runtime/src/std/unistd.h
+++ b/runtime/src/std/unistd.h
@@ -2,10 +2,11 @@
#define SHED_STD_UNISTD_H
#ifdef __WASM__
-#include <stdint.h>
-typedef uint32_t size_t;
-typedef int32_t ssize_t;
+typedef unsigned long size_t;
+typedef long ssize_t;
+#ifndef NULL
#define NULL 0
+#endif
#else
#include <unistd.h>
#endif