Reported by Eli Zaretskii <eliz@gnu.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
* lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
define it.
+2020-09-16 Bruno Haible <bruno@clisp.org>
+
+ stat, fstat: Fix compilation error with old mingw headers.
+ Reported by Eli Zaretskii <eliz@gnu.org> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
+ * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
+ define it.
+
2020-09-16 Bruno Haible <bruno@clisp.org>
stat, fstat: Fix when compiling for versions older than Windows Vista.
#undef GetFinalPathNameByHandle
#define GetFinalPathNameByHandle GetFinalPathNameByHandleA
+/* Older mingw headers do not define VOLUME_NAME_NONE. */
+#ifndef VOLUME_NAME_NONE
+# define VOLUME_NAME_NONE 4
+#endif
+
#if !WIN32_ASSUME_VISTA
/* Avoid warnings from gcc -Wcast-function-type. */