From: Bruno Haible Date: Tue, 30 Nov 2010 20:44:04 +0000 (+0100) Subject: strerror_r-posix: Fix autoconf test. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d8411fd568e326073eb508fa727dc53cee8b7d;p=pspp strerror_r-posix: Fix autoconf test. * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo. --- diff --git a/ChangeLog b/ChangeLog index b76714740d..d4eb684fc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-30 Bruno Haible + + strerror_r-posix: Fix autoconf test. + * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo. + 2010-11-28 Bruno Haible Paul Eggert diff --git a/m4/strerror_r.m4 b/m4/strerror_r.m4 index 016009fd51..abb6622806 100644 --- a/m4/strerror_r.m4 +++ b/m4/strerror_r.m4 @@ -1,4 +1,4 @@ -# strerror_r.m4 serial 1 +# strerror_r.m4 serial 2 dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -50,7 +50,7 @@ AC_DEFUN([gl_FUNC_STRERROR_R], int strerror_r (int, char *, size_t); ]], [[char buf[79]; - return strerror (EACCES, buf, 0) < 0 + return strerror_r (EACCES, buf, 0) < 0 || strerror_r (EACCES, buf, sizeof (buf)) != 0; ]])], [gl_cv_func_strerror_r_works=yes],