mirror of
https://github.com/xroche/httrack.git
synced 2026-05-17 00:16:02 +03:00
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.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -15111,6 +15111,8 @@ else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
@@ -15150,6 +15152,8 @@ else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
int my_vsnprintf (char *buf, const char *tmpl, ...)
|
||||
|
||||
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user