Mercurial > hg > octave-nkf > gnulib-hg
changeset 8480:75eb82f635f3
Enable the strndup declaration also when strndup is replaced.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 21 Mar 2007 04:22:35 +0000 |
parents | 19b8b337ecaa |
children | 93a2e537bc8d |
files | ChangeLog lib/string_.h |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-20 Bruno Haible <bruno@clisp.org> + + * lib/string_.h (strndup): Enable declaration also if ! HAVE_STRNDUP. + Needed on AIX 5.1. Reported by Matthew Woehlke. + 2007-03-19 Paul Eggert <eggert@cs.ucla.edu> Suggestions by Bruno Haible:
--- a/lib/string_.h +++ b/lib/string_.h @@ -192,9 +192,9 @@ # if ! @HAVE_STRNDUP@ # undef strndup # define strndup rpl_strndup -# if ! @HAVE_DECL_STRNDUP@ +# endif +# if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@ extern char *strndup (char const *__string, size_t __n); -# endif # endif #elif defined GNULIB_POSIXCHECK # undef strndup