Suggested by Paul Eggert.
* modules/stat (configure.ac): Request stat-w32.o only on native
Windows.
* modules/fstat (configure.ac): Likewise.
+2017-06-29 Bruno Haible <bruno@clisp.org>
+
+ stat, fstat: Compile stat-w32.c only on platforms that need it.
+ Suggested by Paul Eggert.
+ * modules/stat (configure.ac): Request stat-w32.o only on native
+ Windows.
+ * modules/fstat (configure.ac): Likewise.
+
2017-06-25 Bruno Haible <bruno@clisp.org>
stat: Improve last change.
gl_FUNC_FSTAT
if test $REPLACE_FSTAT = 1; then
AC_LIBOBJ([fstat])
- AC_LIBOBJ([stat-w32])
+ case "$host_os" in
+ mingw*)
+ AC_LIBOBJ([stat-w32])
+ ;;
+ esac
gl_PREREQ_FSTAT
fi
gl_SYS_STAT_MODULE_INDICATOR([fstat])
gl_FUNC_STAT
if test $REPLACE_STAT = 1; then
AC_LIBOBJ([stat])
- AC_LIBOBJ([stat-w32])
+ case "$host_os" in
+ mingw*)
+ AC_LIBOBJ([stat-w32])
+ ;;
+ esac
gl_PREREQ_STAT
fi
gl_SYS_STAT_MODULE_INDICATOR([stat])