$ ./gnulib-tool --create-testdir --dir=../testdir-glob --single-configure 
--with-c++-tests glob
produces a testdir that, when compiled on mingw, produces a link error:
  undefined reference to `lstat'

This fixes it.


2018-03-16  Bruno Haible  <br...@clisp.org>

        glob: Fix link error on native Windows.
        * modules/glob (Depends-on): Add 'lstat'.

diff --git a/modules/glob b/modules/glob
index 2ea73e8..3a43222 100644
--- a/modules/glob
+++ b/modules/glob
@@ -25,6 +25,7 @@ flexmember      [test -n "$GLOB_H"]
 fnmatch         [test -n "$GLOB_H"]
 getlogin_r      [test -n "$GLOB_H"]
 libc-config     [test -n "$GLOB_H"]
+lstat           [test -n "$GLOB_H"]
 memchr          [test -n "$GLOB_H"]
 mempcpy         [test -n "$GLOB_H"]
 opendir         [test -n "$GLOB_H"]


Reply via email to