summaryrefslogtreecommitdiff
path: root/lib/compat/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compat/compat.h')
-rw-r--r--lib/compat/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compat/compat.h b/lib/compat/compat.h
index 320ffdbc9..c1aa60180 100644
--- a/lib/compat/compat.h
+++ b/lib/compat/compat.h
@@ -109,6 +109,8 @@ extern "C" {
#define asprintf test_asprintf
#undef vasprintf
#define vasprintf test_vasprintf
+#undef strchrnul
+#define strchrnul test_strchrnul
#undef strndup
#define strndup test_strndup
#undef strnlen
@@ -139,6 +141,10 @@ int vasprintf(char **str, const char *fmt, va_list args)
LIBCOMPAT_ATTR_VPRINTF(2);
#endif
+#if TEST_LIBCOMPAT || !defined(HAVE_STRCHRNUL)
+char *strchrnul(const char *s, int c);
+#endif
+
#if TEST_LIBCOMPAT || !defined(HAVE_STRNLEN)
size_t strnlen(const char *s, size_t n);
#endif