summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-01-03 16:16:32 (GMT)
committerBrad King <brad.king@kitware.com>2012-01-03 16:16:32 (GMT)
commit3a9f4490f43569af145a444593cd091779d198a9 (patch)
tree7b90c6b623a8075469aa0bf5ad760d87b34fa46a /Utilities/cmlibarchive
parent6af6b96cb391cd5bf176562c3be51ed3a9d995b1 (diff)
downloadCMake-3a9f4490f43569af145a444593cd091779d198a9.zip
CMake-3a9f4490f43569af145a444593cd091779d198a9.tar.gz
CMake-3a9f4490f43569af145a444593cd091779d198a9.tar.bz2
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.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c b/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c
index cc39151..8ce88b3 100644
--- a/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c
+++ b/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c
@@ -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).