[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glob: fix for mingw

From: Bruno Haible
Subject: glob: fix for mingw
Date: Fri, 16 Mar 2018 14:06:17 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-112-generic; KDE/5.18.0; x86_64; ; )

$ ./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  <address@hidden>

        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

[Prev in Thread] Current Thread [Next in Thread]