aboutsummaryrefslogtreecommitdiff
path: root/libopenbsd/closefrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopenbsd/closefrom.c')
-rw-r--r--libopenbsd/closefrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenbsd/closefrom.c b/libopenbsd/closefrom.c
index b56476a..ef7d611 100644
--- a/libopenbsd/closefrom.c
+++ b/libopenbsd/closefrom.c
@@ -69,7 +69,7 @@ void
closefrom(int lowfd)
{
long fd, maxfd;
-#if defined(HAVE_DIRFD) && defined(HAVE_PROC_PID)
+#if defined(HAVE_PROC_PID)
char fdpath[PATH_MAX], *endp;
struct dirent *dent;
DIR *dirp;