From: Andrew Deason Date: Mon, 12 Jan 2009 14:12:03 +0000 (+0000) Subject: STABLE14-libuafs-set-fileoffsetbits-20090112 X-Git-Tag: openafs-stable-1_4_9pre1~68 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4429ed93eeefd06820a671c622b49d8a85b6b969;p=packages%2Fo%2Fopenafs.git STABLE14-libuafs-set-fileoffsetbits-20090112 LICENSE IPL10 FIXES 124093 make libuafs work with things which expect to be able to use native file sizes etc (cherry picked from commit 47ac8ba7022e80e5bc0023782b6b27d5ac97ccd3) --- diff --git a/acinclude.m4 b/acinclude.m4 index 326360e8b..cc51803cf 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