From b94f2b3ac7049ef66bded4596431c453e3710209 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 25 Jul 2011 07:38:52 -0700 Subject: [PATCH 1/1] close: use gl_REPLACE_FCLOSE only if defined * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it is defined. The close module doesn't depend on the fclose module any more, so gl_REPLACE_CLOSE's existence cannot be assumed. See . I reproduced the problem with "./gnulib-tool --test close sys_socket". --- ChangeLog | 9 +++++++++ m4/close.m4 | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7ca0e6f1..b8da59a43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-07-25 Paul Eggert + + close: use gl_REPLACE_FCLOSE only if defined + * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it + is defined. The close module doesn't depend on the fclose module + any more, so gl_REPLACE_CLOSE's existence cannot be assumed. See + . + I reproduced the problem with "./gnulib-tool --test close sys_socket". + 2011-07-24 Jim Meyering test-select.h: avoid warning when using gcc's -Wmissing-declarations diff --git a/m4/close.m4 b/m4/close.m4 index fc131381a..0d8f67a48 100644 --- a/m4/close.m4 +++ b/m4/close.m4 @@ -1,4 +1,4 @@ -# close.m4 serial 5 +# close.m4 serial 6 dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -22,5 +22,5 @@ AC_DEFUN([gl_REPLACE_CLOSE], AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) REPLACE_CLOSE=1 AC_LIBOBJ([close]) - gl_REPLACE_FCLOSE + m4_ifdef([gl_REPLACE_FCLOSE], [gl_REPLACE_FCLOSE]) ]) -- 2.11.0