+2010-03-27 Bruno Haible <bruno@clisp.org>
+
+ Fix a compilation error on Cygwin with g++ >= 4.3.
+ * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
+ if it is undefined or if we alias it to chmod.
+ (lstat): Don't warn about the use of this function if it is undefined
+ or if we alias it to stat.
+ Reported by Simon Josefsson.
+
2010-03-27 Bruno Haible <bruno@clisp.org>
* m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
# endif
_GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode));
# endif
+# if @HAVE_LCHMOD@
_GL_CXXALIASWARN (lchmod);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef lchmod
# if HAVE_RAW_DECL_LCHMOD
# else
_GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf));
# endif
+# if @HAVE_LSTAT@
_GL_CXXALIASWARN (lstat);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef lstat
# if HAVE_RAW_DECL_LSTAT