so that unistd-safer.h (GPL'ed code) need not be included.
+2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
+
+ * fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
+ so that unistd-safer.h (GPL'ed code) need not be included.
+
2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
New fts module.
#include <fcntl.h>
#include <errno.h>
#include "dirfd.h"
-#include "unistd-safer.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
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