diff options
author | Brian Behlendorf <[email protected]> | 2011-04-22 16:17:13 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-04-22 16:17:13 -0700 |
commit | d837ae395b3368bcdc13a7ef1ad8abfc8d24e88f (patch) | |
tree | 585fbf802e8e6098e94f1cd54cfb12a9df4e71f2 /include/sys/sysmacros.h | |
parent | 5b8f76ea16f5634c6a28490f149e699afce09cdf (diff) |
Fix 32-bit MAXOFFSET_T definition
The correct definition of MAXOFFSET_T under Solaris is in reality
tied to the maximum size of a 'long long' type. With this in mind
MAXOFFSET_T is now defined as LLONG_MAX which ensures the correct
value is used on both 32-bit and 64-bit systems.
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 29dcda7fa..7a4faa666 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -65,13 +65,7 @@ #define MAXMSGLEN 256 #define MAXNAMELEN 256 #define MAXPATHLEN PATH_MAX - -#ifdef _LP64 -#define MAXOFFSET_T 0x7fffffffffffffffl -#else -#define MAXOFFSET_T 0x7fffffffl -#endif - +#define MAXOFFSET_T LLONG_MAX #define MAXBSIZE 8192 #define DEV_BSIZE 512 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ |