summaryrefslogtreecommitdiff
path: root/lib/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strndup.c')
-rw-r--r--lib/strndup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/strndup.c b/lib/strndup.c
index 932a83e4c..2626373f2 100644
--- a/lib/strndup.c
+++ b/lib/strndup.c
@@ -36,7 +36,9 @@
#endif
#undef __strndup
-#undef strndup
+#if _LIBC
+# undef strndup
+#endif
#ifndef weak_alias
# define __strndup strndup