diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-05-29 20:47:29 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-05-29 20:47:29 +0300 |
commit | ec7484bf4dc37cf23f89b1d84ba5305a6fd856ff (patch) | |
tree | 52e34b20d401ffce0ad6bba87f937303ae5d80ed /programs | |
parent | 5729239f1a2ce22f62d82e24f88eee8cc4aae655 (diff) |
Fix loss of build compatibility with Linux 2.6 kernels
Diffstat (limited to 'programs')
-rw-r--r-- | programs/benchmark-iostreams/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/benchmark-iostreams/main.cpp b/programs/benchmark-iostreams/main.cpp index ed5eeee2..9d192a98 100644 --- a/programs/benchmark-iostreams/main.cpp +++ b/programs/benchmark-iostreams/main.cpp @@ -26,7 +26,7 @@ Distributed under the Boost Software License, Version 1.0. #define REGIONSIZE (100 * 1024 * 1024) #include "../../include/afio/afio.hpp" -#include "quickcpplib/include/algorithm/small_prng.hpp" +#include "../../include/afio/v2.0/quickcpplib/include/algorithm/small_prng.hpp" #include <chrono> #include <fstream> @@ -202,10 +202,10 @@ int main() #if 1 { // Prefault - volatile afio::byte *p = th.address(); + volatile char *p = (char *) th.address(), x; for(size_t n = 0; n < REGIONSIZE; n += 64) { - p[n]; + x = p[n]; } } #endif |