From 36e6f5de4475dd92a29ccbdbffc136a1b3e7d17b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 25 Apr 2023 21:18:47 +0200 Subject: configure: Avoid implicit declaration of exit, strcmp in snprintf probes Future compilers will not support implicit function declarations by default, so add the additional #include directives for the appropriate function prototypes. --- m4/snprintf.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'm4') diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 index d1c6dc8..2a84428 100644 --- a/m4/snprintf.m4 +++ b/m4/snprintf.m4 @@ -4,6 +4,8 @@ AC_MSG_CHECKING(for working snprintf) AC_CACHE_VAL(ac_cv_have_working_snprintf, [AC_TRY_RUN( [#include +#include +#include int main(void) { @@ -23,6 +25,8 @@ AC_MSG_CHECKING(for working vsnprintf) AC_CACHE_VAL(ac_cv_have_working_vsnprintf, [AC_TRY_RUN( [#include +#include +#include #include int my_vsnprintf (char *buf, const char *tmpl, ...) -- cgit v1.2.3