Also check for strerror_r in gdbserver
authorChristian Biesinger <cbiesinger@google.com>
Thu, 31 Oct 2019 22:02:05 +0000 (17:02 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 31 Oct 2019 22:14:54 +0000 (17:14 -0500)
I forgot to do this in b231e86ac9608056ea837e24d42a878927f5787a

Since safe_strerror is in gdbsupport, gdbserver also needs to
check for strerror_r, although it's less critical since gdbserver
does not use threads as much.

gdb/gdbserver/ChangeLog:

2019-10-31  Christian Biesinger  <cbiesinger@google.com>

* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Also check for strerror_r.

Change-Id: I6a67c8543cd7a28d6dc94f5986f56abcb55727fe

gdb/gdbserver/ChangeLog
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbserver/configure.ac

index 9606596e3d82eb90818773e0b9aa3786148ca9a5..ab03f8815d74fe1eba2d849e3852320e27af1eae 100644 (file)
@@ -1,3 +1,9 @@
+2019-10-31  Christian Biesinger  <cbiesinger@google.com>
+
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * configure.ac: Also check for strerror_r.
+
 2019-10-31  Christian Biesinger  <cbiesinger@google.com>
 
        * ax.h (debug_agent): Remove duplicate declaration.
index 0bce18d2a0e181b9e8d6fd7ef0b1cfe501ac9c8e..2984281cee5f775f24692c61b98f5c2e8985bc16 100644 (file)
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
+/* Define to 1 if you have the `strerror_r' function. */
+#undef HAVE_STRERROR_R
+
 /* Define to 1 if you have the <strings.h> header file. */
 #undef HAVE_STRINGS_H
 
index e513fc5eb10a2eef0eb139dbfb0b090ed4badf54..7bf9fa23dad40925e225a7ca3fc6150549f7e2e5 100755 (executable)
@@ -6448,7 +6448,7 @@ $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
 fi
 
-for ac_func in getauxval pread pwrite pread64 setns
+for ac_func in getauxval pread pwrite pread64 setns strerror_r
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
index 7ebc9c3cf15b8385870ae913f94cff3f1a3c13b6..44fee8ba4f2cbded314a0bfac74ea2c7d88b3360 100644 (file)
@@ -90,7 +90,7 @@ AC_CHECK_HEADERS(termios.h sys/reg.h string.h dnl
                 sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl
                 netinet/tcp.h arpa/inet.h)
 AC_FUNC_FORK
-AC_CHECK_FUNCS(getauxval pread pwrite pread64 setns)
+AC_CHECK_FUNCS(getauxval pread pwrite pread64 setns strerror_r)
 
 GDB_AC_COMMON
 
This page took 0.034742 seconds and 4 git commands to generate.