diff options
author | Chris Wilson <chris+github@qwirx.com> | 2017-01-26 07:26:34 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2017-06-18 11:11:49 +0100 |
commit | 81e9aa6545f7f19124c9f5e88982b867d8732965 (patch) | |
tree | 3670b4e23d48a1d9f9b02c5e71fd919eec5f33e9 /lib | |
parent | 910840de529d1566924ea938883969307b91c209 (diff) |
Hopefully fix test/raidfile on Solaris.
64-bit Solaris has _FILE_OFFSET_BITS defined (to 64), which was wrongly causing
the substitute lseek in lib/intercept to enter the 32-bit branch.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/intercept/intercept.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intercept/intercept.cpp b/lib/intercept/intercept.cpp index 88ea0d6e..ac8c4431 100644 --- a/lib/intercept/intercept.cpp +++ b/lib/intercept/intercept.cpp @@ -389,7 +389,7 @@ lseek(int fildes, off_t offset, int whence) #else #ifdef HAVE_LSEEK_DUMMY_PARAM off_t r = syscall(SYS_lseek, fildes, 0 /* extra 0 required here! */, offset, whence); - #elif defined(_FILE_OFFSET_BITS) + #elif defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 32 // Don't bother trying to call SYS__llseek on 32 bit since it is // fiddly and not needed for the tests off_t r = syscall(SYS_lseek, fildes, (uint32_t)offset, whence); |