aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-05-08 14:15:19 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-05-23 16:03:43 +0200
commite0036e9f0e0240541bf5a4ebcd8087be99739e71 (patch)
treee885012bc41a9181cdaa5c1e7b65097d105b9c8f /configure.ac
parent2585310a2245b6ebffed3fe1318674b2f8eb5b82 (diff)
downloadbitcoin-e0036e9f0e0240541bf5a4ebcd8087be99739e71.tar.xz
Replace non-threadsafe strerror
Log the name of the error as well as the error code if a network problem happens. This makes network troubleshooting more convenient. Use thread-safe strerror_r and the WIN32 equivalent FormatMessage. Conflicts: src/netbase.cpp Rebased-By: Wladimir van der Laan <laanwj@gmail.com> Rebased-From: a60838d
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index eb45fdbfe1..e18f965eb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -303,6 +303,8 @@ INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
# they also need to be passed down to any subprojects. Pull the results out of
# the cache and add them to CPPFLAGS.
AC_SYS_LARGEFILE
+# detect POSIX or GNU variant of strerror_r
+AC_FUNC_STRERROR_R
if test x$ac_cv_sys_file_offset_bits != x &&
test x$ac_cv_sys_file_offset_bits != xno &&