]> Savannah Git Hosting - gnulib.git/commit
stat, fstat: Fix when compiling for versions older than Windows Vista.
authorBruno Haible <bruno@clisp.org>
Wed, 16 Sep 2020 21:51:52 +0000 (23:51 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Sep 2020 21:51:52 +0000 (23:51 +0200)
commit1796cda9975bd459a87222676030b943869c686e
tree6d204af2b944061b2917bb892d89ec5b0db9a399
parent91e8dccc3c352d56262e24f8fc8d4b736092e639
stat, fstat: Fix when compiling for versions older than Windows Vista.

Reported by Eli Zaretskii <eliz@gnu.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.

* lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
that was originally set before we redefined it.
* m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
(gl_PREREQ_STAT): Require it.
* m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
ChangeLog
lib/stat-w32.c
m4/fstat.m4
m4/stat.m4