libarchive: Use Apple copyfile.h API only if available

Do not use the copyfile.h API if the header is not available.
The Mac SDK for older OS X versions does not provide it.
This commit is contained in:
Brad King 2012-01-03 11:16:32 -05:00
parent 6af6b96cb3
commit 3a9f4490f4
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ archive_read_disk_entry_from_file(struct archive *_a,
return (r);
}
#ifdef __APPLE__
#if defined(__APPLE__) && defined(HAVE_COPYFILE_H)
/*
* The Mac OS "copyfile()" API copies the extended metadata for a
* file into a separate file in AppleDouble format (see RFC 1740).