summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1999-01-29 02:40:54 +0000
committerJeremy Allison <jra@samba.org>1999-01-29 02:40:54 +0000
commitf5e717e4d6e6278bba9ecf30ad495fd16b31b368 (patch)
tree7a76b6ac5191bf14d3ffb58ad0a12b868259c36b /source/include
parent59255f5db7c8613b68f5828d3debc18bb4090c9f (diff)
downloadsamba-f5e717e4d6e6278bba9ecf30ad495fd16b31b368.tar.gz
samba-f5e717e4d6e6278bba9ecf30ad495fd16b31b368.tar.xz
samba-f5e717e4d6e6278bba9ecf30ad495fd16b31b368.zip
Fixed large (>4GB) filesystem size reporting.
Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/includes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index b05d8fbfd59..a05caeb49bb 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -547,9 +547,11 @@
#if defined(HAVE_LONGLONG)
#define SMB_BIG_UINT unsigned long long
#define SMB_BIG_INT long long
+#define SBIG_UINT(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
#else
#define SMB_BIG_UINT unsigned long
#define SMB_BIG_INT long
+#define SBIG_UINT(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
#endif
#ifndef MIN