include config.h for 64-bit file support on 32-bit architectures

This commit is contained in:
Sears Russell 2007-03-13 09:19:32 +00:00
parent d05cdfd357
commit 6b60c10864

View file

@ -1,3 +1,5 @@
#include <config.h>
#include <lladd/common.h>
#include <lladd/io/handle.h>
#include <stdlib.h>
#include <string.h>
@ -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;