compile with gcc. addresses #1185

git-svn-id: file:///svn/tokudb.1131b+1080a+1185+nostatementexprs@6469 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:57:21 -04:00 committed by Yoni Fogel
parent a25c7dc501
commit 746d28bf51
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,8 @@ static inline unsigned long long rdtsc() {
return r;
}
#else
#define USE_RDTSC 0
#endif

View file

@ -605,7 +605,7 @@ int toku_fread_DISKOFF (FILE *f, DISKOFF *diskoff, struct x1764 *checksum, u_int
return r;
}
int toku_fread_BLOCKNUM (FILE *f, BLOCKNUM *blocknum, struct x1764 *checksum, u_int32_t *len) {
u_int64_t b;
u_int64_t b = 0;
int r = toku_fread_u_int64_t (f, &b, checksum, len); // sign conversion will be OK.
blocknum->b=b;
return r;