Commit 29033183 authored by Bruno Haible's avatar Bruno Haible
Browse files

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.
parent f1a80e85
2019-12-17 Bruno Haible <bruno@clisp.org>
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.
2019-12-17 Paul Eggert <eggert@cs.ucla.edu>
 
xalloc: tune xzalloc for fresh allocations
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment