ref: 2c7a34994ed9fcb63465f8e86de7b70b3a48f6f5
parent: 3d4872a5f32769876bac1dbe2e2efaa85b864851
author: Quentin Rameau <quinq@fifth.space>
date: Sun Feb 10 11:20:09 EST 2019
[libc] Fix some missing headers
--- a/src/libc/stdlib/atoi.c
+++ b/src/libc/stdlib/atoi.c
@@ -1,5 +1,8 @@
#include <ctype.h>
#include <stdlib.h>
+
+#include "../libc.h"
+
#undef atoi
int
--- a/src/libc/stdlib/atol.c
+++ b/src/libc/stdlib/atol.c
@@ -1,5 +1,8 @@
#include <ctype.h>
#include <stdlib.h>
+
+#include "../libc.h"
+
#undef atol
long
--- a/src/libc/stdlib/atoll.c
+++ b/src/libc/stdlib/atoll.c
@@ -1,5 +1,8 @@
#include <ctype.h>
#include <stdlib.h>
+
+#include "../libc.h"
+
#undef atoll
long long
--- a/src/libc/stdlib/malloc.c
+++ b/src/libc/stdlib/malloc.c
@@ -5,6 +5,7 @@
#include "malloc.h"
#include "../syscall.h"
+#include "../libc.h"
#define MAXADDR ((char *)-1)
#define ERRADDR ((char *)-1)