From 0ebdf28c9843dc7830a483980432a67955114db2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 18 Sep 1998 18:30:42 +0000 Subject: 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) --- source3/include/includes.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'source3/include/includes.h') 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. */ -- cgit