diff options
author | Bruno Haible <bruno@clisp.org> | 2019-12-17 09:51:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-12-17 09:54:06 +0100 |
commit | 290331834d4f200042e01da78e38ff944a55703c (patch) | |
tree | d7a2930665eb8129df94a99da9943f6089dd6e6c /lib/glob.c | |
parent | f1a80e85ea35efcae290e1be5a85df735701fc4f (diff) | |
download | gnulib-290331834d4f200042e01da78e38ff944a55703c.tar.gz |
glob: Avoid warning on mingw.
Reported by Christian Biesinger <cbiesinger@google.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
* lib/glob.c (__stat64): Undefine first.
Diffstat (limited to 'lib/glob.c')
-rw-r--r-- | lib/glob.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/glob.c b/lib/glob.c index 9ecc5150a9..fae6e6175a 100644 --- a/lib/glob.c +++ b/lib/glob.c @@ -72,6 +72,10 @@ # define __glob glob # define __getlogin_r(buf, len) getlogin_r (buf, len) # define __lstat64(fname, buf) lstat (fname, buf) +# ifdef __MINGW32__ + /* Avoid GCC warning. mingw has an unused __stat64 macro. */ +# undef __stat64 +# endif # define __stat64(fname, buf) stat (fname, buf) # define __fxstatat64(_, d, f, st, flag) fstatat (d, f, st, flag) # define struct_stat64 struct stat |