]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/sources/__errno_location.c
Define an `__errno_location` function. (#347)
[wasi-libc.git] / libc-bottom-half / sources / __errno_location.c
diff --git a/libc-bottom-half/sources/__errno_location.c b/libc-bottom-half/sources/__errno_location.c
new file mode 100644 (file)
index 0000000..5e6ef5e
--- /dev/null
@@ -0,0 +1,5 @@
+#include <errno.h>
+
+int *__errno_location(void) {
+    return &errno;
+}