Code

error: Actually check for strerror in configure and fix GNU-specific code.
[sysdb.git] / configure.ac
index 521f0acb5440961fd58d7a94b63cf67bf19e89a7..4d7ccaece38ca902af25d737637652931599779d 100644 (file)
@@ -446,6 +446,9 @@ if test "x$have_struct_ucred" != "xyes"; then
        AC_MSG_RESULT([$have_struct_ucred])
 fi
 
+dnl Only check this after potentially defining _GNU_SOURCE.
+AC_FUNC_STRERROR_R
+
 dnl Testing.
 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],
                [unit_tests="yes"], [unit_tests="no"])