Portability: the included fts.c should now

compile on many non-FreeBSD systems, including
Linux, Solaris, Darwin, etc.

Thanks to: many people who pointed out the same portability problem
This commit is contained in:
kientzle 2004-12-22 00:21:28 +00:00
parent 0f4eb1c80e
commit 093f74efac
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#
PROG= bsdtar
VERSION= 1.01.015
VERSION= 1.01.020
SRCS= bsdtar.c matching.c read.c util.c write.c
WARNS?= 6
DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}

View File

@ -55,7 +55,7 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#include "bsdtar_platform.h" /* bsdtar: need platform-specific definitions. */
__FBSDID("$FreeBSD$");
#ifdef linux /* bsdtar: translate certain system calls to Linux names. */
#ifndef __FreeBSD__ /* bsdtar: Don't use FreeBSD names on non-FreeBSD. */
#define _open open
#define _close close
#define _fstat fstat