cvs commit: src/usr.bin/tar fts.c fts.h

David O'Brien obrien at freebsd.org
Tue May 4 20:31:06 PDT 2004


On Wed, May 05, 2004 at 09:26:32AM +1000, Peter Jeremy wrote:
> On 2004-May-04 10:21:02 -0700, Tim Kientzle <kientzle at freebsd.org> wrote:
> >kientzle    2004/05/04 10:21:02 PDT
> >  Added files:
> >    usr.bin/tar          fts.c fts.h 
> >  Log:
> >  Include local copies of fts.c and fts.h to be used ONLY on non-FreeBSD
> >  systems.  The fts.h here is an exact copy of include/fts.h (except for
> >  an initial explanatory comment and the revision tags, of course).  The
> >  fts.c here is slightly modified from lib/libc/gen/fts.c so it can
> >  compile correctly on non-FreeBSD systems.
...
> be usable on anything other than Linux systems due to the '#ifdef LINUX'
> near the top - if this was '#ifndef __FreeBSD__', the portability would
> be enhanced.

Also why spell it "#ifdef LINUX" vs. what all compilers already define
for you -- "#ifdef linux" (or "#ifdef __gnu_linux__")? 

-- 
-- David  (obrien at FreeBSD.org)


More information about the cvs-src mailing list