# HG changeset patch # User Paul Howarth # Date 1480951050 0 # Node ID 16869cca53ce11a620beccb96a3cecfd28f78c3c # Parent f1164511f6e57de7ad038947b71b31f8bf6993ff configure: Fix some implicit function declarations Some configure tests fail unexpectedly if the compiler flag -Werror=implicit-function-declarations is enabled, which can result in the wrong implementations being used. This compiler flag is now enabled by default in Fedora Rawhide: https://fedoraproject.org/wiki/Changes/Fedora26CFlags is needed for exit() is needed for strcpy() diff -r f1164511f6e5 -r 16869cca53ce configure.ac --- a/configure.ac Wed Dec 07 14:23:12 2016 +0100 +++ b/configure.ac Mon Dec 05 15:17:30 2016 +0000 @@ -837,6 +837,7 @@ AC_CACHE_CHECK([whether size_t is signed],i_cv_signed_size_t,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include + #include int main() { /* return 0 if we're signed */ exit((size_t)(int)-1 <= 0 ? 0 : 1); @@ -993,6 +994,7 @@ AC_CACHE_CHECK([whether time_t is signed],i_cv_signed_time_t,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include + #include int main() { /* return 0 if we're signed */ exit((time_t)(int)-1 <= 0 ? 0 : 1); @@ -1184,6 +1186,7 @@ #include #include #include + #include int main() { /* return 0 if we're signed */ int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600); @@ -1560,6 +1563,7 @@ AC_CACHE_CHECK([for an implementation of va_copy()],lib_cv_va_copy,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include + #include void f (int i, ...) { va_list args1, args2; va_start (args1, i); @@ -1578,6 +1582,7 @@ AC_CACHE_CHECK([for an implementation of __va_copy()],lib_cv___va_copy,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include + #include void f (int i, ...) { va_list args1, args2; va_start (args1, i); @@ -1608,6 +1613,7 @@ AC_CACHE_CHECK([whether va_lists can be copied by value],lib_cv_va_val_copy,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include + #include void f (int i, ...) { va_list args1, args2; va_start (args1, i); @@ -1625,7 +1631,7 @@ ]) if test "x$lib_cv_va_val_copy" = "xno"; then - AC_DEFINE(VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values]) + AC_DEFINE(VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copied as values]) fi dnl * dynamic modules?