summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-30 15:19:47 +0000
committerJim Meyering <jim@meyering.net>2005-09-30 15:19:47 +0000
commit03866dcfb981ff8d36876331b598cb325bea27d9 (patch)
tree271e64b6445d7a0933c2dcc47e76cc0437606e89 /lib
parent5230885d13b2ec25d6976acea475de475b01f1fa (diff)
downloadcoreutils-03866dcfb981ff8d36876331b598cb325bea27d9.tar.xz
(fdopendir): Do not define if HAVE_FDOPENDIR.
Diffstat (limited to 'lib')
-rw-r--r--lib/openat.h4
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);