changeset 9997 | d858e88e871a |
parent 9390 | 88d36f907e96 |
child 9998 | 2bf26d44bc33 |
--- a/src/string_func.h Sun Aug 24 13:50:31 2008 +0000 +++ b/src/string_func.h Sun Aug 24 17:02:21 2008 +0000 @@ -156,4 +156,9 @@ ; } -#endif /* STRING_FUNC_H */ +#ifndef _GNU_SOURCE +/* strndup is a GNU extension */ +char *strndup(const char *s, size_t len); +#endif /* WIN32 || SUNOS */ + +#endif /* !_GNU_SOURCE */