improve linux fiemap support

This commit is contained in:
Arvid Norberg 2010-01-17 21:56:24 +00:00
parent b1c12d4c69
commit 36809c7007
2 changed files with 4 additions and 1 deletions

View File

@ -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"], [

View File

@ -72,7 +72,7 @@ POSSIBILITY OF SUCH DAMAGE.
// linux specifics
#include <sys/ioctl.h>
#ifdef FS_IOC_FIEMAP
#ifdef HAVE_LINUX_FIEMAP_H
#include <linux/fiemap.h>
#endif