fts: do not fail on a submount during traversal
[pspp] / lib / fcntl.in.h
index cadb6a1572a63539ee2fac7bc4cd1a746b8b32f3..0ae8213e4764f2cd643a778fd1d9fb791ba2ed6f 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