Fixup test.

git-svn-id: file:///svn/unbound/trunk@3519 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2015-10-27 14:11:51 +00:00
parent ec9cee7fc2
commit e3c8adc297
2 changed files with 2 additions and 2 deletions

2
configure vendored
View file

@ -18252,7 +18252,7 @@ else
/* end confdefs.h. */
$ac_includes_default
int main(void) { return (snprintf(NULL, 0, "test") == 5); }
int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

View file

@ -1008,7 +1008,7 @@ if test "x$ac_cv_func_snprintf" = xyes; then
AC_MSG_CHECKING([for correct snprintf return value])
AC_RUN_IFELSE([AC_LANG_SOURCE(AC_INCLUDES_DEFAULT
[[
int main(void) { return (snprintf(NULL, 0, "test") == 5); }
int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
]])], [AC_MSG_RESULT(yes)], [
AC_MSG_RESULT(no)
AC_DEFINE([SNPRINTF_RET_BROKEN], [], [define if (v)snprintf does not return length needed, (but length used)])