summaryrefslogtreecommitdiff
path: root/common/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/compat.h')
-rw-r--r--common/compat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h
index ad80ca5..27e4403 100644
--- a/common/compat.h
+++ b/common/compat.h
@@ -223,6 +223,13 @@ void * memdup (const void *data,
#endif /* HAVE_MEMDUP */
+#ifndef HAVE_STRNDUP
+
+char * strndup (const char *data,
+ size_t length);
+
+#endif /* HAVE_STRDUP */
+
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else