summaryrefslogtreecommitdiff
path: root/utils/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/utils.c b/utils/utils.c
index b0069365e..175b33073 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -295,6 +295,7 @@ char *strcasestr(const char *haystack, const char *needle)
#endif
+#ifndef HAVE_STRNDUP
/**
* Duplicate up to n characters of a string.
@@ -317,6 +318,7 @@ char *strndup(const char *s, size_t n)
return s2;
}
+#endif
#ifndef HAVE_STRCHRNUL