summaryrefslogtreecommitdiff
path: root/userland/libc/string/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/string/strndup.c')
-rw-r--r--userland/libc/string/strndup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/string/strndup.c b/userland/libc/string/strndup.c
index ffb2088..22d6303 100644
--- a/userland/libc/string/strndup.c
+++ b/userland/libc/string/strndup.c
@@ -1,6 +1,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
+#include <math.h>
// The strndup() function shall be equivalent to the strdup() function,
// duplicating the provided s in a new block of memory allocated as if