From 330d2ff424d0681417a8f3a8f02cb325fcbc589b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 1 Jun 2004 20:53:31 +0000 Subject: [PATCH] Better check for dirfd macro--we now set HAVE_DIRFD for the macro version too. Added check for dd_fd in `DIR' if no dirfd is found; this is now used to confitionally define the dirfd macro in compat.h. --- compat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compat.h b/compat.h index 2d87cffc7..d4318e72e 100644 --- a/compat.h +++ b/compat.h @@ -206,8 +206,9 @@ typedef struct sigaction sigaction_t; /* * If dirfd() does not exists, hopefully dd_fd does. */ -#if !defined(HAVE_DIRFD) && !defined(dirfd) +#if !defined(HAVE_DIRFD) && defined(HAVE_DD_FD) # define dirfd(_d) ((_d)->dd_fd) +# define HAVE_DIRFD #endif /* -- 2.50.1