summaryrefslogtreecommitdiff
path: root/lib/libc/string/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/strndup.c')
-rw-r--r--lib/libc/string/strndup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/string/strndup.c b/lib/libc/string/strndup.c
index 318561ca..18d1a718 100644
--- a/lib/libc/string/strndup.c
+++ b/lib/libc/string/strndup.c
@@ -1,4 +1,6 @@
-#include <stdlib.h> // for NULL, malloc
+#include "stddef.h" // for NULL
+
+#include <stdlib.h> // for malloc
#include <string.h> // for memcpy, size_t, strndup
char *strndup(const char *s, size_t size)