Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-05-29 20:47:29 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-05-29 20:47:29 +0300
commitec7484bf4dc37cf23f89b1d84ba5305a6fd856ff (patch)
tree52e34b20d401ffce0ad6bba87f937303ae5d80ed /programs
parent5729239f1a2ce22f62d82e24f88eee8cc4aae655 (diff)
Fix loss of build compatibility with Linux 2.6 kernels
Diffstat (limited to 'programs')
-rw-r--r--programs/benchmark-iostreams/main.cpp6
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