From f500ccff35a55d04e7f6b8ddb54ff6e54e9c5d70 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Sat, 7 Feb 2009 00:53:39 +0000 Subject: [PATCH] Minor bug fix due to MAXOFFSET_T constant being too large on 32-bit systems. --- include/sys/sysmacros.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 65c1025..03e72a1 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -61,7 +61,12 @@ extern "C" { #define MAXMSGLEN 256 #define MAXNAMELEN 256 #define MAXPATHLEN PATH_MAX + +#ifdef _LP64 #define MAXOFFSET_T 0x7fffffffffffffffl +#else +#define MAXOFFSET_T 0x7fffffffl +#endif #define MAXBSIZE 8192 #define DEV_BSIZE 512 -- 2.40.0