From 56feeb13d6ee860c4ba0a1b5020a2a9a55fe67b9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 22 Apr 2008 00:01:17 +0200 Subject: [PATCH] Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl' differently. --- ChangeLog | 9 +++++++++ lib/canonicalize-lgpl.c | 2 +- lib/canonicalize.c | 4 ++-- modules/canonicalize-lgpl | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cbbf085a4..3c5c979c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2008-04-20 Bruno Haible + Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl', + take 2. + * lib/canonicalize.c (canonicalize_file_name): Elide if the + 'canonicalize-lgpl' module is also used. + * lib/canonicalize-lgpl.c: Undo last change. + * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR. + +2008-04-20 Bruno Haible + * lib/mkdir.c (mkdir): Undefine after the includes, not right after config.h. Provide _mkdir based fallback for mingw. * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index 7446dfdfe..80bef72c1 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c @@ -21,7 +21,7 @@ on Solaris 2.5.1. */ #undef realpath -#if !(HAVE_CANONICALIZE_FILE_NAME || (GNULIB_CANONICALIZE && !defined IN_RELOCWRAPPER)) || defined _LIBC +#if !HAVE_CANONICALIZE_FILE_NAME || defined _LIBC #include diff --git a/lib/canonicalize.c b/lib/canonicalize.c index f0a4762b7..4f348398f 100644 --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -1,5 +1,5 @@ /* Return the canonical absolute name of a given file. - Copyright (C) 1996-2007 Free Software Foundation, Inc. + Copyright (C) 1996-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -48,7 +48,7 @@ #include "pathmax.h" #include "areadlink.h" -#if !HAVE_CANONICALIZE_FILE_NAME +#if !(HAVE_CANONICALIZE_FILE_NAME || GNULIB_CANONICALIZE_LGPL) /* Return the canonical absolute name of file NAME. A canonical name does not contain any `.', `..' components nor any repeated file name separators ('/') or symlinks. All components must exist. diff --git a/modules/canonicalize-lgpl b/modules/canonicalize-lgpl index 2514f4337..129e813aa 100644 --- a/modules/canonicalize-lgpl +++ b/modules/canonicalize-lgpl @@ -14,6 +14,7 @@ readlink configure.ac: gl_CANONICALIZE_LGPL +gl_MODULE_INDICATOR([canonicalize-lgpl]) Makefile.am: -- 2.11.0