From: Tim Kientzle Date: Sun, 21 Feb 2010 19:23:22 +0000 (-0500) Subject: Macs don't have tape drives, but they do define _PATH_DEFTAPE? X-Git-Tag: v3.0.0a~1220 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98e101899b20147c23a92c3e4b837545e9acfb31;p=thirdparty%2Flibarchive.git Macs don't have tape drives, but they do define _PATH_DEFTAPE? I wonder if I should reconsider defaulting the tape drive to "-" on Mac OS. SVN-Revision: 1943 --- diff --git a/tar/bsdtar.c b/tar/bsdtar.c index 62edc74e6..d136baa55 100644 --- a/tar/bsdtar.c +++ b/tar/bsdtar.c @@ -84,6 +84,7 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/bsdtar.c,v 1.93 2008/11/08 04:43:24 kientzle #define _PATH_DEFTAPE "\\\\.\\tape0" #endif #if defined(__APPLE__) +#undef _PATH_DEFTAPE #define _PATH_DEFTAPE "-" /* Mac OS has no tape support, default to stdio. */ #endif