ref: c0a73e7704df4edf73f81020b9432a794c655232
parent: ae0d87a19f53e5e8690e4a41536b5a825a3d9787
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Aug 28 07:53:55 EDT 2021
libc: Fix compilation After the last changes there were some definitions lost and this commit adds the inclusion path needed for it and a few include directives.
--- a/src/libc/rules.mk
+++ b/src/libc/rules.mk
@@ -5,6 +5,7 @@
-I$(INCDIR)\
-I$(INCDIR)/bits/$(SYS)\
-I$(INCDIR)/bits/$(ARCH)\
+ -I$(INCDIR)/bits/$(SYS)/$(ARCH)\
MORE_ARFLAGS = -u
--- a/src/libc/stdio/vfprintf.c
+++ b/src/libc/stdio/vfprintf.c
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
+#include <wchar.h>
#define MAXPREC 50
--- a/src/libc/stdlib/atexit.c
+++ b/src/libc/stdlib/atexit.c
@@ -1,6 +1,8 @@
#include <stdlib.h>
#include <errno.h>
+#include "../libc.h"
+
#undef atexit
int