Apply a fix from Eric Blake that already went into autoconf.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2006 11:30:53 +0000 (11:30 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2006 11:30:53 +0000 (11:30 +0000)
m4/ChangeLog
m4/strerror_r.m4

index b2dc0ae..8dd49e1 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-04  Eric Blake  <ebb9@byu.net>
+
+       * strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
+
 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
index 28924b1..e3b5d0c 100644 (file)
@@ -25,6 +25,7 @@ AC_CACHE_CHECK([whether strerror_r returns char *],
          char buf[100];
          char x = *strerror_r (0, buf, sizeof buf);
          char *p = strerror_r (0, buf, sizeof buf);
+         return !p || x;
        ]])],
                        ac_cv_func_strerror_r_char_p=yes)
     else