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.
This commit is contained in:
Todd C. Miller
2004-06-01 20:53:31 +00:00
parent cebfa4c030
commit 330d2ff424

View File

@@ -206,8 +206,9 @@ typedef struct sigaction sigaction_t;
/* /*
* If dirfd() does not exists, hopefully dd_fd does. * 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 dirfd(_d) ((_d)->dd_fd)
# define HAVE_DIRFD
#endif #endif
/* /*