snippet/warn-on-use: Fix indentation.
[gnulib.git] / lib / sys_stat.in.h
index 22cde11..53b3081 100644 (file)
@@ -34,7 +34,7 @@
 #else
 /* Normal invocation convention.  */
 
-#ifndef _GL_SYS_STAT_H
+#ifndef _@GUARD_PREFIX@_SYS_STAT_H
 
 /* Get nlink_t.  */
 #include <sys/types.h>
@@ -45,8 +45,8 @@
 /* The include_next requires a split double-inclusion guard.  */
 #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@
 
-#ifndef _GL_SYS_STAT_H
-#define _GL_SYS_STAT_H
+#ifndef _@GUARD_PREFIX@_SYS_STAT_H
+#define _@GUARD_PREFIX@_SYS_STAT_H
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
@@ -359,7 +359,7 @@ _GL_WARN_ON_USE (fstatat, "fstatat is not portable - "
    implementation relies on futimesat, which on Solaris 10 makes an invocation
    to futimens that is meant to invoke the libc's futimens(), not gnulib's
    futimens().  */
-# if @REPLACE_FUTIMENS@ || defined __sun
+# if @REPLACE_FUTIMENS@ || (!@HAVE_FUTIMENS@ && defined __sun)
 #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 #   undef futimens
 #   define futimens rpl_futimens
@@ -622,7 +622,7 @@ _GL_WARN_ON_USE (stat, "stat is unportable - "
    implementation relies on futimesat, which on Solaris 10 makes an invocation
    to utimensat that is meant to invoke the libc's utimensat(), not gnulib's
    utimensat().  */
-# if @REPLACE_UTIMENSAT@ || defined __sun
+# if @REPLACE_UTIMENSAT@ || (!@HAVE_UTIMENSAT@ && defined __sun)
 #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 #   undef utimensat
 #   define utimensat rpl_utimensat
@@ -653,6 +653,6 @@ _GL_WARN_ON_USE (utimensat, "utimensat is not portable - "
 #endif
 
 
-#endif /* _GL_SYS_STAT_H */
-#endif /* _GL_SYS_STAT_H */
+#endif /* _@GUARD_PREFIX@_SYS_STAT_H */
+#endif /* _@GUARD_PREFIX@_SYS_STAT_H */
 #endif