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:
3
compat.h
3
compat.h
@@ -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
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user