Util: Fix build with strndup on some platforms

This commit is contained in:
Jeffrey Pfau 2014-11-16 20:25:52 -08:00
parent c19673ce40
commit 938c9e965d
1 changed files with 4 additions and 0 deletions

View File

@ -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