--- a/src/internfile/Filter.h
+++ b/src/internfile/Filter.h
@@ -17,6 +17,7 @@
 #ifndef _DIJON_FILTER_H
 #define _DIJON_FILTER_H
 
+#include <stdint.h>
 #include <string>
 #include <set>
 #include <map>
@@ -140,7 +141,7 @@
 	    stat() calls The value is stored inside metaData, docsize
 	    key
 	*/
-	virtual void set_docsize(off_t size) = 0;
+	virtual void set_docsize(int64_t size) = 0;
 
 	// Going from one nested document to the next.