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:
parent
6af6b96cb3
commit
3a9f4490f4
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue