From 4a118b62272183ac3135463060d5e6fa700fc37b Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Sun, 22 Feb 2009 02:30:10 +0000 Subject: [PATCH] Minor bug fix due to MAXOFFSET_T constant being too large on 32-bit systems. --- lib/libspl/include/sys/param.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libspl/include/sys/param.h b/lib/libspl/include/sys/param.h index 5ea896fa40..d9e7782e4f 100644 --- a/lib/libspl/include/sys/param.h +++ b/lib/libspl/include/sys/param.h @@ -48,7 +48,12 @@ #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define MAXNAMELEN 256 + +#ifdef _LP64 #define MAXOFFSET_T 0x7fffffffffffffffl +#else +#define MAXOFFSET_T 0x7fffffffl +#endif #define UID_NOBODY 60001 /* user ID no body */ #define GID_NOBODY UID_NOBODY