From a01ee103f9bc0c6defe9ce8cd85651f19f7127bd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 11 Feb 2024 21:29:15 +0000 Subject: Create separate lib for patio runtime --- runtime/src/shed/std/unistd.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/src/shed/std/unistd.h (limited to 'runtime/src/shed/std') 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 +#endif + +#endif -- cgit v1.2.3