From 3a350110276cb41f2b49932d0a639b2ec9fcae5d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 22 May 2005 17:29:16 +0000 Subject: [PATCH] * fts.c (fd_safer) [_LGPL_PACKAGE]: New static function, so that unistd-safer.h (GPL'ed code) need not be included. --- lib/ChangeLog | 5 +++++ lib/fts.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 8f9b1ccd55..4e7b22a714 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-05-22 Paul Eggert + + * 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 New fts module. diff --git a/lib/fts.c b/lib/fts.c index b2bec1992f..418e75b278 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 #include #include "dirfd.h" -#include "unistd-safer.h" #include #include #include @@ -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 -- 2.30.2