summaryrefslogtreecommitdiff
path: root/lib/dirfd.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-12 21:03:28 +0000
committerJim Meyering <jim@meyering.net>2002-04-12 21:03:28 +0000
commitad935391c27e79af7037142e1ab0394823ee6c2e (patch)
tree75a71b9da9f6943943058aa54c282ac9c05860ee /lib/dirfd.h
parent5f057a69d6be2571385a20f137830f8711b8ab10 (diff)
downloadcoreutils-ad935391c27e79af7037142e1ab0394823ee6c2e.tar.xz
(dirfd): Elide prototype if dirfd is a macro.
Diffstat (limited to 'lib/dirfd.h')
-rw-r--r--lib/dirfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dirfd.h b/lib/dirfd.h
index 01fa28ef5..422f97663 100644
--- a/lib/dirfd.h
+++ b/lib/dirfd.h
@@ -22,6 +22,6 @@
#ifndef HAVE_DECL_DIRFD
"this configure-time declaration test was not run"
#endif
-#if !HAVE_DECL_DIRFD
+#if !HAVE_DECL_DIRFD && !defined dirfd
int dirfd (DIR const *);
#endif