From 29ab5525603344e191913dde293d2b77c9728a55 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 04:23:33 +0200 Subject: [PATCH] strerror_r: Fix comments. * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr. --- ChangeLog | 5 +++++ lib/strerror_r.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 013decd27..ffd1ba698 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-05-21 Bruno Haible + strerror_r: Fix comments. + * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr. + +2011-05-21 Bruno Haible + relocatable-prog-wrapper: Fix possible link error. * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here... diff --git a/lib/strerror_r.c b/lib/strerror_r.c index 65d230ac5..f0b59c717 100644 --- a/lib/strerror_r.c +++ b/lib/strerror_r.c @@ -77,7 +77,7 @@ extern char *sys_errlist[]; extern int sys_nerr; # endif -/* Get sys_nerr, sys_errlist on native Windows and Cygwin. */ +/* Get sys_nerr, sys_errlist on native Windows. */ # include # else @@ -504,7 +504,7 @@ strerror_r (int errnum, char *buf, size_t buflen) and above. HP-UX: sys_nerr, sys_errlist are declared explicitly above. native Win32: sys_nerr, sys_errlist are declared in . - Cygwin: sys_nerr, sys_errlist are declared in . */ + Cygwin: sys_nerr, sys_errlist are declared in . */ if (errnum >= 0 && errnum < sys_nerr) { # if HAVE_CATGETS && (defined __NetBSD__ || defined __hpux) -- 2.11.0