(dirfd): Elide prototype if dirfd is a macro.
authorJim Meyering <jim@meyering.net>
Fri, 12 Apr 2002 21:03:28 +0000 (21:03 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 12 Apr 2002 21:03:28 +0000 (21:03 +0000)
lib/dirfd.h

index 01fa28e..422f976 100644 (file)
@@ -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