diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2013-08-08 17:37:38 +1000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2013-08-08 17:37:38 +1000 |
commit | 43e5ce62eaaa26429b7cd3b01143387b7bc0927d (patch) | |
tree | 8b52e1be38a4ceebc0437741e495254872515a43 /src/os_posix/os_fallocate.c | |
parent | 2b9ce64bb36c2c528a219c95096e642f5d60a8b7 (diff) | |
download | mongo-43e5ce62eaaa26429b7cd3b01143387b7bc0927d.tar.gz |
Make __wt_fallocate compile even if neither system call is found.
Diffstat (limited to 'src/os_posix/os_fallocate.c')
-rw-r--r-- | src/os_posix/os_fallocate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_posix/os_fallocate.c b/src/os_posix/os_fallocate.c index dab117d489e..c880f53f40b 100644 --- a/src/os_posix/os_fallocate.c +++ b/src/os_posix/os_fallocate.c @@ -26,6 +26,10 @@ __wt_fallocate(WT_SESSION_IMPL *session, WT_FH *fh, off_t offset, off_t len) WT_SYSCALL_RETRY(ftruncate(fh->fd, offset + len), ret); if (ret != 0) WT_RET_MSG(session, ret, "%s: ftruncate", fh->name); +#else + WT_UNUSED(ret); + WT_UNUSED(offset); + WT_UNUSED(len); #endif return (0); } |