mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fixup test.
git-svn-id: file:///svn/unbound/trunk@3519 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
ec9cee7fc2
commit
e3c8adc297
2 changed files with 2 additions and 2 deletions
2
configure
vendored
2
configure
vendored
|
|
@ -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 :
|
||||
|
|
|
|||
|
|
@ -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)])
|
||||
|
|
|
|||
Loading…
Reference in a new issue