]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_FUNC_STRERROR_R): Call strerror_r with 2nd arg
authorJim Meyering <meyering@lucent.com>
Sun, 28 May 2000 16:27:56 +0000 (16:27 +0000)
committerJim Meyering <meyering@lucent.com>
Sun, 28 May 2000 16:27:56 +0000 (16:27 +0000)
of type char*, not int.  Suggestion from Paul Eggert.

acspecific.m4
lib/autoconf/specific.m4

index 2739fd357e983dfe58258b83bc07bea5373c4a20..19814cd39e57c0008f368432848e4203dc0782fa 100644 (file)
@@ -1663,8 +1663,8 @@ if test $ac_cv_func_strerror_r = yes; then
 #       endif
      ],
      [
-       int buf; /* avoiding square brackets makes this easier */
-       char x = *strerror_r (0, buf, sizeof buf);
+       char buf;
+       char x = *strerror_r (0, &buf, sizeof buf);
      ],
      ac_cv_func_strerror_r_works=yes,
      ac_cv_func_strerror_r_works=no
index 2739fd357e983dfe58258b83bc07bea5373c4a20..19814cd39e57c0008f368432848e4203dc0782fa 100644 (file)
@@ -1663,8 +1663,8 @@ if test $ac_cv_func_strerror_r = yes; then
 #       endif
      ],
      [
-       int buf; /* avoiding square brackets makes this easier */
-       char x = *strerror_r (0, buf, sizeof buf);
+       char buf;
+       char x = *strerror_r (0, &buf, sizeof buf);
      ],
      ac_cv_func_strerror_r_works=yes,
      ac_cv_func_strerror_r_works=no