From: Jim Meyering Date: Fri, 12 Apr 2002 21:03:28 +0000 (+0000) Subject: (dirfd): Elide prototype if dirfd is a macro. X-Git-Tag: SH-UTILS-2_0_12~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad935391c27e79af7037142e1ab0394823ee6c2e;p=thirdparty%2Fcoreutils.git (dirfd): Elide prototype if dirfd is a macro. --- diff --git a/lib/dirfd.h b/lib/dirfd.h index 01fa28ef5e..422f976636 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