diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/openat.h b/lib/openat.h index 5aa693c4d..4c2a2e0b7 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -46,7 +46,9 @@ # define __OPENAT_ID(y) __OPENAT_XCONCAT (__OPENAT_PREFIX, y) # define openat __OPENAT_ID (openat) int openat (int fd, char const *file, int flags, /* mode_t mode */ ...); -# define fdopendir __OPENAT_ID (fdopendir) +# if ! HAVE_FDOPENDIR +# define fdopendir __OPENAT_ID (fdopendir) +# endif DIR *fdopendir (int fd); # define fstatat __OPENAT_ID (fstatat) int fstatat (int fd, char const *file, struct stat *st, int flag); |