diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-08 14:15:19 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-23 16:03:43 +0200 |
commit | e0036e9f0e0240541bf5a4ebcd8087be99739e71 (patch) | |
tree | e885012bc41a9181cdaa5c1e7b65097d105b9c8f /configure.ac | |
parent | 2585310a2245b6ebffed3fe1318674b2f8eb5b82 (diff) | |
download | bitcoin-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.ac | 2 |
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 && |