From: Andrew Deason Date: Mon, 12 Jan 2009 14:11:36 +0000 (+0000) Subject: libuafs-set-fileoffsetbits-20090112 X-Git-Tag: openafs-devel-1_5_61~620 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=47ac8ba7022e80e5bc0023782b6b27d5ac97ccd3;p=packages%2Fo%2Fopenafs.git libuafs-set-fileoffsetbits-20090112 LICENSE IPL10 FIXES 124093 make libuafs work with things which expect to be able to use native file sizes etc --- 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