diff --git a/aclocal.m4 b/aclocal.m4 index a926977e3..9a672e2ab 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -496,6 +496,7 @@ AC_DEFUN(MP_CHECK_FRAMEWORK_IOKIT, [ AC_LINK_IFELSE([ AC_LANG_PROGRAM([ #include + #include ], [ IOCreateReceivePort(0, NULL); IORegisterForSystemPower(0, NULL, NULL, NULL); diff --git a/configure b/configure index 7c7b1dc1e..9a4fd76bc 100755 --- a/configure +++ b/configure @@ -6005,6 +6005,7 @@ else #include + #include int main () diff --git a/vendor/tcl8.5.19/unix/configure b/vendor/tcl8.5.19/unix/configure index 7ff9f7257..fcb64f18e 100755 --- a/vendor/tcl8.5.19/unix/configure +++ b/vendor/tcl8.5.19/unix/configure @@ -2798,6 +2798,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -14488,6 +14489,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +#include int main() { extern int strstr(); exit(strstr("\0test", "test") ? 1 : 0); @@ -14655,6 +14657,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +#include int main() { extern int strtoul(); char *term, *string = "0"; @@ -14822,6 +14825,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +#include int main() { extern double strtod(); char *term, *string = " +69"; @@ -14993,6 +14997,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ + #include extern double strtod(); int main() { char *infString="Inf", *nanString="NaN", *spaceString=" "; @@ -16380,6 +16385,7 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #include #define OURVAR "havecopy=yes" int main (int argc, char *argv[]) { diff --git a/vendor/tcl8.5.19/unix/configure.in b/vendor/tcl8.5.19/unix/configure.in index e4255b6df..af2a26a14 100755 --- a/vendor/tcl8.5.19/unix/configure.in +++ b/vendor/tcl8.5.19/unix/configure.in @@ -453,6 +453,7 @@ fi AC_CACHE_CHECK([for a putenv() that copies the buffer], tcl_cv_putenv_copy, [ AC_TRY_RUN([ #include + #include #define OURVAR "havecopy=yes" int main (int argc, char *argv[]) { diff --git a/vendor/tcl8.5.19/unix/tcl.m4 b/vendor/tcl8.5.19/unix/tcl.m4 index a7faae550..f482460ce 100644 --- a/vendor/tcl8.5.19/unix/tcl.m4 +++ b/vendor/tcl8.5.19/unix/tcl.m4 @@ -2587,6 +2587,7 @@ AC_DEFUN([SC_BUGGY_STRTOD], [ if test "$tcl_strtod" = 1; then AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[ AC_TRY_RUN([ + #include extern double strtod(); int main() { char *infString="Inf", *nanString="NaN", *spaceString=" "; @@ -2864,7 +2865,10 @@ AC_DEFUN([SC_TCL_CHECK_BROKEN_FUNC],[ AC_CHECK_FUNC($1, tcl_ok=1, tcl_ok=0) if test ["$tcl_ok"] = 1; then AC_CACHE_CHECK([proper ]$1[ implementation], [tcl_cv_]$1[_unbroken], - AC_TRY_RUN([[int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok, + AC_TRY_RUN([[ +#include +#include +int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok, [tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=unknown)) if test ["$tcl_cv_]$1[_unbroken"] = "ok"; then tcl_ok=1 diff --git a/vendor/tclx8.4/configure b/vendor/tclx8.4/configure index be63b1795..154515ccc 100755 --- a/vendor/tclx8.4/configure +++ b/vendor/tclx8.4/configure @@ -3214,6 +3214,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -10766,6 +10767,7 @@ cat >>conftest.$ac_ext <<_ACEOF #include #include +#include main() { struct tms cpu; times(&cpu); diff --git a/vendor/tclx8.4/configure.in b/vendor/tclx8.4/configure.in index 173ec261f..d1be5550e 100755 --- a/vendor/tclx8.4/configure.in +++ b/vendor/tclx8.4/configure.in @@ -194,6 +194,7 @@ WIFEXITED(x); /* Generates compiler error if WIFEXITED uses an int. */ AC_TRY_RUN([ #include #include +#include main() { struct tms cpu; times(&cpu); diff --git a/vendor/tclx8.4/tclconfig/tcl.m4 b/vendor/tclx8.4/tclconfig/tcl.m4 index 18d71343f..6b6ab41e4 100644 --- a/vendor/tclx8.4/tclconfig/tcl.m4 +++ b/vendor/tclx8.4/tclconfig/tcl.m4 @@ -2441,6 +2441,7 @@ AC_DEFUN(TEA_BUGGY_STRTOD, [ if test "$tcl_strtod" = 1; then AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[ AC_TRY_RUN([ + #include extern double strtod(); int main() { char *infString="Inf", *nanString="NaN", *spaceString=" "; diff --git a/vendor/thread2.7.3/configure b/vendor/thread2.7.3/configure index 621bf8cd1..e8e4a7b1c 100755 --- a/vendor/thread2.7.3/configure +++ b/vendor/thread2.7.3/configure @@ -4003,6 +4003,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) diff --git a/vendor/thread2.7.3/tclconfig/tcl.m4 b/vendor/thread2.7.3/tclconfig/tcl.m4 index f679256fd..328508f31 100644 --- a/vendor/thread2.7.3/tclconfig/tcl.m4 +++ b/vendor/thread2.7.3/tclconfig/tcl.m4 @@ -2584,6 +2584,7 @@ AC_DEFUN([TEA_BUGGY_STRTOD], [ if test "$tcl_strtod" = 1; then AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[ AC_TRY_RUN([ + #include extern double strtod(); int main() { char *infString="Inf", *nanString="NaN", *spaceString=" ";