stat: fix compilation on AIX
[gnulib.git] / lib / fcntl.in.h
index 6c88b47..0ae8213 100644 (file)
@@ -62,9 +62,11 @@ extern int open (const char *filename, int flags, ...);
 #endif
 
 #if @GNULIB_OPENAT@
-# if !@HAVE_OPENAT@
+# if @REPLACE_OPENAT@
 #  undef openat
 #  define openat rpl_openat
+# endif
+# if !@HAVE_OPENAT@ || @REPLACE_OPENAT@
 int openat (int fd, char const *file, int flags, /* mode_t mode */ ...);
 # endif
 #elif defined GNULIB_POSIXCHECK
@@ -192,6 +194,15 @@ int openat (int fd, char const *file, int flags, /* mode_t mode */ ...);
 # define AT_REMOVEDIR 1
 #endif
 
+/* Solaris 9 lacks these two, so just pick unique values.  */
+#ifndef AT_SYMLINK_FOLLOW
+# define AT_SYMLINK_FOLLOW 2
+#endif
+
+#ifndef AT_EACCESS
+# define AT_EACCESS 4
+#endif
+
 
 #endif /* _GL_FCNTL_H */
 #endif /* _GL_FCNTL_H */