libuafs-set-fileoffsetbits-20090112
authorAndrew Deason <adeason@sinenomine.net>
Mon, 12 Jan 2009 14:11:36 +0000 (14:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 12 Jan 2009 14:11:36 +0000 (14:11 +0000)
LICENSE IPL10
FIXES 124093

make libuafs work with things which expect to be able to use native file
sizes etc

acinclude.m4

index 6ee19bf..3a94f47 100644 (file)
@@ -42,6 +42,15 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #  undef WORDS_BIGENDIAN
 # endif
 #endif
+#ifdef UKERNEL
+/*
+ * Always use 64-bit file offsets for UKERNEL code. Needed for UKERNEL stuff to
+ * play nice with some other interfaces like FUSE. We technically only would
+ * need to define this when building for such interfaces, but set it always to
+ * try and reduce potential confusion. 
+ */
+#define _FILE_OFFSET_BITS 64
+#endif
 
 #undef AFS_AFSDB_ENV
 #undef AFS_LARGEFILE_ENV