]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Early versions of Mac OS X do not support HFS+ Compression.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 30 Oct 2012 23:59:22 +0000 (08:59 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 30 Oct 2012 23:59:22 +0000 (08:59 +0900)
libarchive/test/test_write_disk_hfs_compression.c

index 7eb874902ea5aa23367df1683e7f776ef7c67d17..9b8b9d6c6faf66e5ef4de651b848df88c756fc0b 100644 (file)
@@ -30,7 +30,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/xattr.h>
 #endif
 
-#ifdef __APPLE__
+#if defined(__APPLE__) && defined(UF_COMPRESSED)
 static int
 has_xattr(const char *filename, const char *xattrname)
 {
@@ -71,7 +71,7 @@ has_xattr(const char *filename, const char *xattrname)
  */
 DEFINE_TEST(test_write_disk_hfs_compression)
 {
-#ifndef __APPLE__
+#if !defined(__APPLE__) || !defined(UF_COMPRESSED)
        skipping("MacOS-specific HFS+ Compression test");
 #else
        const char *refname = "test_write_disk_hfs_compression.tgz";