]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: fix test for fallocate on 32bit boxes
authorEric Sandeen <sandeen@sandeen.net>
Mon, 15 Jun 2009 20:45:44 +0000 (15:45 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 15 Jun 2009 20:45:44 +0000 (15:45 -0500)
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 <sandeen@sandeen.net>
Reviewed-by: Olaf Weber <olaf@sgi.com>
m4/package_libcdev.m4

index 1ac466664abd95c50d370d4ed3e12a2605f88416..1c1859d638ee9f5d48188e30e29753c1ef9c7a30 100644 (file)
@@ -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 <fcntl.h>
 #include <linux/falloc.h>
     ], [
          fallocate(0, 0, 0, 0);