(svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some cases (Krille)

This commit is contained in:
rubidium
2010-05-21 15:56:19 +00:00
parent aefe28bd1c
commit be79aba6eb
2 changed files with 7 additions and 4 deletions

View File

@@ -398,7 +398,7 @@ size_t Utf8TrimString(char *s, size_t maxlen)
return length;
}
#ifndef _GNU_SOURCE
#ifdef DEFINE_STRNDUP
#include "core/math_func.hpp"
char *strndup(const char *s, size_t len)
{
@@ -407,7 +407,7 @@ char *strndup(const char *s, size_t len)
memcpy(tmp, s, len);
return tmp;
}
#endif /* !_GNU_SOURCE */
#endif /* DEFINE_STRNDUP */
#ifdef DEFINE_STRCASESTR
char *strcasestr(const char *haystack, const char *needle)