else
a->todo |= TODO_MAC_METADATA;
}
-#if defined(HAVE_ZLIB_H) && defined(UF_COMPRESSED)
+#if defined(__APPLE__) && defined(UF_COMPRESSED)
if ((a->flags & ARCHIVE_EXTRACT_NO_HFS_COMPRESSION) == 0) {
unsigned long set, clear;
archive_entry_fflags(a->entry, &set, &clear);
a->todo |= TODO_HFS_COMPRESSION;
a->decmpfs_block_count = (unsigned)-1;
}
-#ifdef __APPLE__
/* Do not compress "._XXX" files. */
if (a->name[0] == '.' && a->name[1] == '_')
a->todo &= ~TODO_HFS_COMPRESSION;
-#endif
#endif
if (a->flags & ARCHIVE_EXTRACT_XATTR)
ret = restore_entry(a);
-#if defined(HAVE_ZLIB_H) && defined(UF_COMPRESSED)
+#if defined(__APPLE__) && defined(UF_COMPRESSED)
/*
* Check if the filesystem the file is restoring on supports
* HFS+ Compression. If not, cancel HFS+ Compression.
return (start_size - size);
}
-#if defined(HAVE_ZLIB_H) && defined(UF_COMPRESSED)
+#if defined(__APPLE__) && defined(UF_COMPRESSED)
/*
* Set UF_COMPRESSED file flag.
} else if (a->fd_offset == a->filesize) {
/* Last write ended at exactly the filesize; we're done. */
/* Hopefully, this is the common case. */
-#if defined(HAVE_ZLIB_H) && defined(UF_COMPRESSED)
+#if defined(__APPLE__) && defined(UF_COMPRESSED)
} else if (a->todo & TODO_HFS_COMPRESSION) {
char null_d[1024];
ssize_t r;