diff --git a/cf/broken-snprintf.m4 b/cf/broken-snprintf.m4 index 1c6a83d27..83ddea105 100644 --- a/cf/broken-snprintf.m4 +++ b/cf/broken-snprintf.m4 @@ -21,6 +21,9 @@ if test "$ac_cv_func_snprintf_working" = yes; then foo=HAVE_SNPRINTF AC_DEFINE_UNQUOTED($foo) fi +if test "$ac_cv_func_snprintf_working" = yes; then +AC_NEED_PROTO([#include ],snprintf) +fi ]) AC_DEFUN(AC_BROKEN_VSNPRINTF,[ @@ -55,4 +58,7 @@ if test "$ac_cv_func_vsnprintf_working" = yes; then foo=HAVE_VSNPRINTF AC_DEFINE_UNQUOTED($foo) fi +if test "$ac_cv_func_vsnprintf_working" = yes; then +AC_NEED_PROTO([#include ],vsnprintf) +fi ])