From 47ac8ba7022e80e5bc0023782b6b27d5ac97ccd3 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 12 Jan 2009 14:11:36 +0000 Subject: [PATCH] libuafs-set-fileoffsetbits-20090112 LICENSE IPL10 FIXES 124093 make libuafs work with things which expect to be able to use native file sizes etc --- acinclude.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 6ee19bf4a..3a94f473d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 -- 2.39.5