src/liboping.c: Use thread-safe error handling.
[liboping.git] / configure.ac
index 67bc892..984ad85 100644 (file)
@@ -160,6 +160,8 @@ AC_CHECK_FUNCS(nanosleep, [],
                AC_MSG_ERROR(cannot find nanosleep)))
 AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
 
+AC_FUNC_STRERROR_R
+
 AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [Enable extensive debugging output.])],
 [
        if test "x$enable_debug" = "xyes"