]> granicus.if.org Git - zfs/commitdiff
Minor bug fix due to MAXOFFSET_T constant being too large on 32-bit systems.
authorRicardo M. Correia <Ricardo.M.Correia@Sun.COM>
Sat, 7 Feb 2009 00:53:39 +0000 (00:53 +0000)
committerRicardo M. Correia <Ricardo.M.Correia@Sun.COM>
Sat, 7 Feb 2009 00:53:39 +0000 (00:53 +0000)
include/sys/sysmacros.h

index 65c10258573a495d73c74b012d8f097f78c044f7..03e72a145818f7c347fee2f0bf79d4cbca72a518 100644 (file)
@@ -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