Mercurial > hg > octave-nkf > gnulib-hg
changeset 14792:fedc69ad1054
strerror_r: Fix comments.
* lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 22 May 2011 04:23:33 +0200 |
parents | b312611534ee |
children | 1c8ef4361784 |
files | ChangeLog lib/strerror_r.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-21 Bruno Haible <bruno@clisp.org> + + strerror_r: Fix comments. + * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr. + 2011-05-21 Bruno Haible <bruno@clisp.org> relocatable-prog-wrapper: Fix possible link error.
--- a/lib/strerror_r.c +++ b/lib/strerror_r.c @@ -77,7 +77,7 @@ extern int sys_nerr; # endif -/* Get sys_nerr, sys_errlist on native Windows and Cygwin. */ +/* Get sys_nerr, sys_errlist on native Windows. */ # include <stdlib.h> # else @@ -504,7 +504,7 @@ and <errno.h> above. HP-UX: sys_nerr, sys_errlist are declared explicitly above. native Win32: sys_nerr, sys_errlist are declared in <stdlib.h>. - Cygwin: sys_nerr, sys_errlist are declared in <stdlib.h>. */ + Cygwin: sys_nerr, sys_errlist are declared in <errno.h>. */ if (errnum >= 0 && errnum < sys_nerr) { # if HAVE_CATGETS && (defined __NetBSD__ || defined __hpux)