diff options
author | Bruno Haible <bruno@clisp.org> | 2017-04-29 15:05:15 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-04-29 22:52:04 +0200 |
commit | bd48174329ce207aaf37d37c91b68b215216ab2e (patch) | |
tree | 979ab3d9a4dd9e7ab47aa5701b81a348e5e06a20 /modules/stat | |
parent | fcb99f403746ba7f21b0180a149992b14d6c81bd (diff) | |
download | gnulib-bd48174329ce207aaf37d37c91b68b215216ab2e.tar.gz |
stat: Fix time_t values and other problems on native Windows platforms.
* doc/posix-functions/stat.texi: Mention the problem with the Microsoft
implementations of stat().
* lib/stat.c: Include filename.h instead of dosname.h. Include
malloca.h, stat-w32.h.
(is_unc_root): New function.
(rpl_stat): New implementation for native Windows. Remove
REPLACE_FUNC_STAT_DIR code.
* m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
Don't define REPLACE_FUNC_STAT_DIR.
(gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
* modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
(Depends-on): Remove dosname. Add filename, malloca.
(configure.ac): Also compile lib/stat-w32.c.
Diffstat (limited to 'modules/stat')
-rw-r--r-- | modules/stat | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/stat b/modules/stat index e309d7379c..de9e7cdbb1 100644 --- a/modules/stat +++ b/modules/stat @@ -3,12 +3,15 @@ stat() function: query file information Files: lib/stat.c +lib/stat-w32.h +lib/stat-w32.c m4/stat.m4 Depends-on: sys_stat largefile -dosname [test $REPLACE_STAT = 1] +filename [test $REPLACE_STAT = 1] +malloca [test $REPLACE_STAT = 1] pathmax [test $REPLACE_STAT = 1] stdbool [test $REPLACE_STAT = 1] verify [test $REPLACE_STAT = 1] @@ -17,6 +20,7 @@ configure.ac: gl_FUNC_STAT if test $REPLACE_STAT = 1; then AC_LIBOBJ([stat]) + AC_LIBOBJ([stat-w32]) gl_PREREQ_STAT fi gl_SYS_STAT_MODULE_INDICATOR([stat]) |