From c17c73e2388ffdacc3543459b7344f97c28c5a2e Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Mon, 15 Jun 2009 15:45:44 -0500 Subject: [PATCH] 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 --- m4/package_libcdev.m4 | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.2