From a79bb7268922a227a6891b08126e8daf9de1d06f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 1 Jun 2004 18:59:28 +0000 Subject: [PATCH] dirfd() is now defined in compat.h as needed. --- closefrom.c | 4 ---- getcwd.c | 4 ---- 2 files changed, 8 deletions(-) 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')))