summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-18 18:30:42 +0000
committerJeremy Allison <jra@samba.org>1998-09-18 18:30:42 +0000
commit0ebdf28c9843dc7830a483980432a67955114db2 (patch)
treeecc0b90527ea5eb7fe502ffb027360637fafddd9 /source3/include
parent7be02a20373a72789c5ecb254eeb62abdb9585fe (diff)
downloadsamba-0ebdf28c9843dc7830a483980432a67955114db2.tar.gz
samba-0ebdf28c9843dc7830a483980432a67955114db2.tar.bz2
samba-0ebdf28c9843dc7830a483980432a67955114db2.zip
Fixed position of LARGE_SMB_OFF_T definition. The SOFF_T define was
being done *before* the LARGE_SMB_OFF_T was being defined, but SOFF_T depended on it :-). This broke 64 bit file reporting. Jeremy. (This used to be commit c6a353cfabd99be0ce5bf508d716216443a44c20)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 86887cec6d..3f99574c64 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -353,14 +353,6 @@
#define SMB_OFF_T_BITS (sizeof(SMB_OFF_T)*8)
-
-#ifdef LARGE_SMB_OFF_T
-#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
-#else
-#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
-#endif
-
-
/*
* Set the define that tells us if we can do 64 bit
* NT SMB calls.
@@ -372,6 +364,12 @@
# endif
#endif
+#ifdef LARGE_SMB_OFF_T
+#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
+#else
+#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
+#endif
+
/*
* Type for stat structure.
*/