diff --git a/closefrom.c b/closefrom.c index 6cc7a8ec1..3aeb45df4 100644 --- a/closefrom.c +++ b/closefrom.c @@ -47,10 +47,6 @@ #include "sudo.h" -#ifndef dirfd -# define dirfd(dirp) ((dirp)->dd_fd) -#endif - #ifndef lint static const char rcsid[] = "$Sudo$"; #endif /* lint */ diff --git a/getcwd.c b/getcwd.c index e5c33b02b..1045f3506 100644 --- a/getcwd.c +++ b/getcwd.c @@ -74,10 +74,6 @@ #include "compat.h" -#ifndef dirfd -# define dirfd(dirp) ((dirp)->dd_fd) -#endif - #define ISDOT(dp) \ (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))