[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation error in glob.c with gcc 4.8
From: |
Bruno Haible |
Subject: |
Re: Compilation error in glob.c with gcc 4.8 |
Date: |
Sat, 18 Aug 2018 22:45:17 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-130-generic; KDE/5.18.0; x86_64; ; ) |
Reuben Thomas wrote:
> This makes the build break again because of the problem I reported in
> glob_pattern_p.c (see my patch for it).
Ah, I see. The macro 'weak_alias' apparently needs libc-config.h as well.
2018-08-18 Bruno Haible <address@hidden>
glob: Fix compilation error when glob.h is not replaced.
Reported and fix proposed by Reuben Thomas <address@hidden> in
<https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
* lib/glob_pattern_p.c: Include <libc-config.h>.
* modules/glob (Depends-on): Add libc-config.
diff --git a/lib/glob_pattern_p.c b/lib/glob_pattern_p.c
index b7f19bb..70d0258 100644
--- a/lib/glob_pattern_p.c
+++ b/lib/glob_pattern_p.c
@@ -17,7 +17,7 @@
<https://www.gnu.org/licenses/>. */
#ifndef _LIBC
-# include <config.h>
+# include <libc-config.h>
#endif
#include <glob.h>
diff --git a/modules/glob b/modules/glob
index 4bf2dd2..88bfce2 100644
--- a/modules/glob
+++ b/modules/glob
@@ -20,6 +20,7 @@ d-type [test $HAVE_GLOB = 0 || test $REPLACE_GLOB =
1]
flexmember [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
fnmatch [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
getlogin_r [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
+libc-config [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
memchr [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
mempcpy [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
opendir [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
- Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/17
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/17
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/17
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/17
- Re: Compilation error in glob.c with gcc 4.8, Paul Eggert, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Bruno Haible, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Paul Eggert, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Bruno Haible, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Paul Eggert, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8,
Bruno Haible <=
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Bruno Haible, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Bruno Haible, 2018/08/18
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/18
- Re: warning: 'fnmatch' macro redefined, Bruno Haible, 2018/08/18
- Re: warning: 'fnmatch' macro redefined, Reuben Thomas, 2018/08/19
- Re: Compilation error in glob.c with gcc 4.8, Bruno Haible, 2018/08/19
- Re: Compilation error in glob.c with gcc 4.8, Reuben Thomas, 2018/08/19