diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-01-23 22:46:06 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-01-23 22:46:06 +0000 |
commit | 8dd345eb9ecb8626d1097ebfcde99a28781bfca6 (patch) | |
tree | dcc13e0c823833f98756079967f90b2533aa9735 /lib | |
parent | 82bb4df7578149a3e08e9b52f7f8a2ff882f81d0 (diff) |
Fix raidfile tests on FreeBSD 7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/intercept/intercept.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/intercept/intercept.cpp b/lib/intercept/intercept.cpp index e5e29e24..65514ae2 100644 --- a/lib/intercept/intercept.cpp +++ b/lib/intercept/intercept.cpp @@ -50,11 +50,14 @@ extern "C" off_t TEST_lseek(int fildes, off_t offset, int whence); #else + // if we have __syscall, we should use it for everything + // (on FreeBSD 7 this is required for 64-bit alignment of off_t). + // if not, we should continue to use the old syscall(). #ifdef HAVE___SYSCALL_NEED_DEFN // Need this, not declared in syscall.h nor unistd.h extern "C" off_t __syscall(quad_t number, ...); #endif - #ifndef HAVE_SYSCALL + #ifdef HAVE___SYSCALL #undef syscall #define syscall __syscall #endif |