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:
parent
0f4eb1c80e
commit
093f74efac
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user