summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/atol.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/atol.c')
-rw-r--r--lib/libc/stdlib/atol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdlib/atol.c b/lib/libc/stdlib/atol.c
index 976f9997..81bbbf82 100644
--- a/lib/libc/stdlib/atol.c
+++ b/lib/libc/stdlib/atol.c
@@ -1,4 +1,6 @@
-#include <stdlib.h>
+#include "stddef.h" // for NULL
+
+#include <stdlib.h> // for strtol, atol
long atol(const char *nptr)
{