From 36809c700754378a3a11ebd6e7033a3f15405288 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 17 Jan 2010 21:56:24 +0000 Subject: [PATCH] improve linux fiemap support --- configure.ac | 3 +++ src/file.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6a2fa2400..df162ed8a 100644 --- a/configure.ac +++ b/configure.ac @@ -559,6 +559,9 @@ AS_CASE(["$ARG_WITH_ZLIB"], AC_MSG_ERROR([Unknown option "$ARG_WITH_ZLIB". Use either "yes" or "no".])] ) +AC_MSG_CHECKING([for FIEMAP support]) +AC_CHECK_HEADERS([linux/fiemap.h]) + AC_MSG_CHECKING([whether to link against system libgeoip]) #depends: $ac_arg_enable_geoip AS_CASE(["$ARG_WITH_LIBGEOIP"], ["yes"|"system"], [ diff --git a/src/file.cpp b/src/file.cpp index ec01be3fa..ed5533bc3 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -72,7 +72,7 @@ POSSIBILITY OF SUCH DAMAGE. // linux specifics #include -#ifdef FS_IOC_FIEMAP +#ifdef HAVE_LINUX_FIEMAP_H #include #endif