summaryrefslogtreecommitdiff
path: root/lib/openat.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/openat.h')
-rw-r--r--lib/openat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/openat.h b/lib/openat.h
index 017cf5cb0..9eca973b5 100644
--- a/lib/openat.h
+++ b/lib/openat.h
@@ -75,11 +75,13 @@ DIR *fdopendir (int fd);
int fstatat (int fd, char const *file, struct stat *st, int flag);
# define unlinkat __OPENAT_ID (unlinkat)
int unlinkat (int fd, char const *file, int flag);
+bool openat_needs_fchdir (void);
#else
# define openat_permissive(Fd, File, Flags, Mode, Cwd_errno) \
openat (Fd, File, Flags, Mode)
+# define openat_needs_fchdir() false
#endif
@@ -115,5 +117,3 @@ lchmodat (int fd, char const *file, mode_t mode)
{
return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW);
}
-
-bool openat_needs_fchdir (void);