summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-12-22 00:21:28 +0000
committerkientzle <kientzle@FreeBSD.org>2004-12-22 00:21:28 +0000
commit38e8a38c1291c29aef398b340693e23eb85b726b (patch)
tree7801f47e8a04d709ae858a5b0e9b40fecdded816 /usr.bin
parent5a6d53a6697ca04b164b12374e83e6e895dd0fab (diff)
downloadFreeBSD-src-38e8a38c1291c29aef398b340693e23eb85b726b.zip
FreeBSD-src-38e8a38c1291c29aef398b340693e23eb85b726b.tar.gz
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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/Makefile2
-rw-r--r--usr.bin/tar/fts.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile
index dcc6a4c..d0a9696 100644
--- a/usr.bin/tar/Makefile
+++ b/usr.bin/tar/Makefile
@@ -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}
diff --git a/usr.bin/tar/fts.c b/usr.bin/tar/fts.c
index 07bf972c..69cd396 100644
--- a/usr.bin/tar/fts.c
+++ b/usr.bin/tar/fts.c
@@ -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
OpenPOWER on IntegriCloud