summaryrefslogtreecommitdiff
path: root/modules/sys_stat
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-05-13 02:46:43 +0200
committerBruno Haible <bruno@clisp.org>2017-05-13 02:46:43 +0200
commit44fe2082cf3e604bf0b4fe7259d1edb7cce334da (patch)
tree865dcb65694f37ad20f13c290c32a77cc8dccac4 /modules/sys_stat
parent532f7f1eb74212b69e464ceaca943173619f7657 (diff)
downloadgnulib-44fe2082cf3e604bf0b4fe7259d1edb7cce334da.tar.gz
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.
Diffstat (limited to 'modules/sys_stat')
-rw-r--r--modules/sys_stat1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/sys_stat b/modules/sys_stat
index f8d863321a..2e0aa75844 100644
--- a/modules/sys_stat
+++ b/modules/sys_stat
@@ -46,6 +46,7 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
-e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
-e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
-e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
+ -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
-e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
-e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
-e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \