From: John W. Eaton Date: Tue, 13 Dec 2016 17:43:09 +0000 (-0500) Subject: link: fix test to declare use of rename() X-Git-Tag: v1.0~6504 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=83d7e71261f13ccfef771769a9ab6bbb2d870b89;p=gnulib.git link: fix test to declare use of rename() The test in link.m4 needs to include to provide a declaration for the rename function. The test fails if building with GCC's -Werror=implicit-function-declaration option. This was reported as part of a bug with building Octave on Fedora, which now uses -Werror=implicit-function-declaration by default. * m4/link.m4 (gl_FUNC_LINK): Include . https://savannah.gnu.org/bugs/?49782 --- diff --git a/ChangeLog b/ChangeLog index a5e6f7ebbc..51b89eff58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-12-13 John W. Eaton + + link: fix test to declare use of rename() + * m4/link.m4 (gl_FUNC_LINK): Include needed with + -Werror=implicit-function-declaration + 2016-12-12 Bruno Haible fpending: Port to native Windows with MSVC. diff --git a/m4/link.m4 b/m4/link.m4 index 77f5a2b9c0..34e7708898 100644 --- a/m4/link.m4 +++ b/m4/link.m4 @@ -22,6 +22,7 @@ AC_DEFUN([gl_FUNC_LINK], AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include + #include ]], [[int result = 0; if (!link ("conftest.a", "conftest.b/"))