diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 21:40:39 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 21:40:39 +0000 |
| commit | 425aae2408eb29a43cc9050b83c29b56e6213deb (patch) | |
| tree | cdeeb5c144b1b93e3e2eef04c5ac49d3176c08c9 /runtime/src/std | |
| parent | fa7c6c438116a9ef4b0d323198d5f079e9288c56 (diff) | |
Use offset from start of entire object
Diffstat (limited to 'runtime/src/std')
| -rw-r--r-- | runtime/src/std/unistd.h | 7 |
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 |
