diff --git a/src/lladd/io/file.c b/src/lladd/io/file.c index bb787bc..dd73b62 100644 --- a/src/lladd/io/file.c +++ b/src/lladd/io/file.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include @@ -497,6 +499,7 @@ stasis_handle_t * stasis_handle(open_file)(lsn_t start_offset, char * filename, pthread_mutex_init(&(impl->mut), 0); impl->start_pos = start_offset; impl->end_pos = start_offset; + assert(sizeof(off_t) >= (64/8)); impl->fd = open(filename, flags, mode); if(impl->fd == -1) { ret->error = errno;