Add missing function prototype for strndup on Darwin (Thanks Marcus)

This commit is contained in:
Michael Stapelberg 2011-07-17 22:18:00 +02:00
parent 3da3a69106
commit b87742172b
1 changed files with 9 additions and 0 deletions

View File

@ -176,6 +176,15 @@ void *memmem(const void *l, size_t l_len, const void *s, size_t s_len);
#endif #endif
#if defined(__APPLE__) #if defined(__APPLE__)
/*
* Taken from FreeBSD
* Returns a pointer to a new string which is a duplicate of the
* string, but only copies at most n characters.
*
*/
char *strndup(const char *str, size_t n);
#endif #endif
#endif #endif