public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs_io: fix test for fallocate on 32bit boxes
@ 2009-06-15 19:43 Eric Sandeen
  2009-06-15 20:12 ` Olaf Weber
  2009-06-16 14:04 ` Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Sandeen @ 2009-06-15 19:43 UTC (permalink / raw)
  To: xfs-oss

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, and
it'll fail properly on x86 until glibc gets fixed.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---

diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4
index 1ac4666..1c1859d 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 <fcntl.h>
 #include <linux/falloc.h>
     ], [
          fallocate(0, 0, 0, 0);


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-16 15:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-15 19:43 xfs_io: fix test for fallocate on 32bit boxes Eric Sandeen
2009-06-15 20:12 ` Olaf Weber
2009-06-16 14:04 ` Christoph Hellwig
2009-06-16 15:04   ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox