summaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
Diffstat (limited to 'include/util')
-rw-r--r--include/util/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/util/compat.h b/include/util/compat.h
index d69a1de..8566090 100644
--- a/include/util/compat.h
+++ b/include/util/compat.h
@@ -110,4 +110,8 @@ struct stat {
#include <sys/sysmacros.h>
#endif
+#ifndef HAVE_STRNDUP
+char *strndup(const char *str, size_t max_len);
+#endif
+
#endif /* COMPAT_H */