summaryrefslogtreecommitdiff
path: root/lib/fts.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fts.c')
-rw-r--r--lib/fts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fts.c b/lib/fts.c
index b2bec1992..418e75b27 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -66,7 +66,6 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#include <fcntl.h>
#include <errno.h>
#include "dirfd.h"
-#include "unistd-safer.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
@@ -170,8 +169,10 @@ static bool enter_dir (FTS *fts, FTSENT *ent) { return true; }
static void leave_dir (FTS *fts, FTSENT *ent) {}
static bool setup_dir (FTS *fts) { return true; }
static void free_dir (FTS *fts) {}
+static int fd_safer (int fd) { return fd; }
#else
# include "fts-cycle.c"
+# include "unistd-safer.h"
#endif
#ifndef MAX