diff options
author | Xavier Roche <roche@httrack.com> | 2023-11-18 17:28:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 17:28:12 +0100 |
commit | 940bc759c9a26f70e75dc2af7ddbdeb6d72a3106 (patch) | |
tree | fa8c67f3d07a36ac943228f8fba2dacfdcbe769c /m4/snprintf.m4 | |
parent | 300f906d7829293715f8e35855207ff42a395d8d (diff) | |
parent | 36e6f5de4475dd92a29ccbdbffc136a1b3e7d17b (diff) |
Merge pull request #252 from fweimer-rh/c99
configure: Avoid implicit declaration of exit, strcmp in snprintf probes
Diffstat (limited to 'm4/snprintf.m4')
-rw-r--r-- | m4/snprintf.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#include <string.h> 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 <stdio.h> +#include <stdlib.h> +#include <string.h> #include <stdarg.h> int my_vsnprintf (char *buf, const char *tmpl, ...) |