From c2ec61d9a534947b5a8cf9b51fba30aec32f70cb Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 18 Aug 2018 22:44:28 +0200 Subject: [PATCH] glob: Fix compilation error when glob.h is not replaced. Reported and fix proposed by Reuben Thomas in . * lib/glob_pattern_p.c: Include . * modules/glob (Depends-on): Add libc-config. --- ChangeLog | 8 ++++++++ lib/glob_pattern_p.c | 2 +- modules/glob | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f34eb61825..96c57a40bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-08-18 Bruno Haible + + glob: Fix compilation error when glob.h is not replaced. + Reported and fix proposed by Reuben Thomas in + . + * lib/glob_pattern_p.c: Include . + * modules/glob (Depends-on): Add libc-config. + 2018-08-18 Bruno Haible scratch_buffer: Add tests. diff --git a/lib/glob_pattern_p.c b/lib/glob_pattern_p.c index b7f19bbec7..70d02582cf 100644 --- a/lib/glob_pattern_p.c +++ b/lib/glob_pattern_p.c @@ -17,7 +17,7 @@ . */ #ifndef _LIBC -# include +# include #endif #include diff --git a/modules/glob b/modules/glob index 4bf2dd2eac..88bfce2301 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] -- 2.39.5