windows-stat-override: New module.
commit44fe2082cf3e604bf0b4fe7259d1edb7cce334da
authorBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 00:46:43 +0000 (13 02:46 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 00:46:43 +0000 (13 02:46 +0200)
tree865dcb65694f37ad20f13c290c32a77cc8dccac4
parent532f7f1eb74212b69e464ceaca943173619f7657
windows-stat-override: New module.

* lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
definition. Define GNULIB_defined_struct_stat.
(fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
link error if this symbol is used and the corresponding module is not
in use.
(_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
GNULIB_OVERRIDES_STRUCT_STAT.
* m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
GNULIB_OVERRIDES_STRUCT_STAT.
* modules/sys_stat (Makefile.am): Substitute
GNULIB_OVERRIDES_STRUCT_STAT.
* modules/windows-stat-override: New file.
ChangeLog
lib/sys_stat.in.h
m4/sys_stat_h.m4
modules/sys_stat
modules/windows-stat-override [new file with mode: 0644]