From 425aae2408eb29a43cc9050b83c29b56e6213deb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 21:40:39 +0000 Subject: Use offset from start of entire object --- runtime/src/std/unistd.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'runtime/src/std') 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 -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 #endif -- cgit v1.2.3