From: Eric Sandeen Date: Mon, 15 Jun 2009 20:45:44 +0000 (-0500) Subject: xfs_io: fix test for fallocate on 32bit boxes X-Git-Tag: v3.0.3~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c17c73e2388ffdacc3543459b7344f97c28c5a2e;p=thirdparty%2Fxfsprogs-dev.git xfs_io: fix test for fallocate on 32bit boxes As per Red Hat bug 500487, fallocate64 is missing in glibc, so attempts to build with fallocate and _FILE_OFFSET_BITS=64 will fail. So, change the config to test the way we will build. Signed-off-by: Eric Sandeen Reviewed-by: Olaf Weber --- diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index 1ac466664..1c1859d63 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -105,6 +105,9 @@ AC_DEFUN([AC_HAVE_GETMNTINFO], AC_DEFUN([AC_HAVE_FALLOCATE], [ AC_MSG_CHECKING([for fallocate]) AC_TRY_LINK([ +#define _GNU_SOURCE +#define _FILE_OFFSET_BITS 64 +#include #include ], [ fallocate(0, 0, 0, 0);