From 938c9e965d14e6867f165b3be3391b0c15484bf5 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 16 Nov 2014 20:25:52 -0800 Subject: [PATCH] Util: Fix build with strndup on some platforms --- src/util/string.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/string.h b/src/util/string.h index b78e20180..837f7b55b 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -3,7 +3,11 @@ #include "util/common.h" +#ifndef strndup +// This is sometimes a macro char* strndup(const char* start, size_t len); +#endif + char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len); #endif