From 555e119ebff47098fd90759b6aed889ae2b3a6cc Mon Sep 17 00:00:00 2001 From: Martin Matuska Date: Mon, 7 Nov 2016 15:38:30 +0100 Subject: [PATCH] Unbreak build with Linux kernels older than 3.8 --- libarchive/archive_read_disk_entry_from_file.c | 2 +- libarchive/test/test_sparse_basic.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libarchive/archive_read_disk_entry_from_file.c b/libarchive/archive_read_disk_entry_from_file.c index 82ef21322..a537798f8 100644 --- a/libarchive/archive_read_disk_entry_from_file.c +++ b/libarchive/archive_read_disk_entry_from_file.c @@ -1373,7 +1373,7 @@ exit_setup_sparse: return (exit_sts); } -#else +#elif !defined(HAVE_LINUX_FIEMAP_H) /* * Generic (stub) sparse support. diff --git a/libarchive/test/test_sparse_basic.c b/libarchive/test/test_sparse_basic.c index 5959c9ce8..06f2c9d54 100644 --- a/libarchive/test/test_sparse_basic.c +++ b/libarchive/test/test_sparse_basic.c @@ -188,7 +188,7 @@ is_sparse_supported_fiemap(const char *path) static int is_sparse_supported(const char *path) { - return is_sparse_supported_fiemap(const char *path) + return is_sparse_supported_fiemap(path); } #endif #endif @@ -235,7 +235,7 @@ is_sparse_supported(const char *path) return (r >= 0); } -#else +#elif !defined(HAVE_LINUX_FIEMAP_H) /* * Other system may do not have the API such as lseek(HOLE), -- 2.47.2