Index: client/deps/glbench/src/utils.cc |
diff --git a/client/deps/glbench/src/utils.cc b/client/deps/glbench/src/utils.cc |
index 8709faffccdbae6ffd499446e383e60d932e3456..4dfc467d26728b94cee5eeb7dca2af19ed4dc8aa 100644 |
--- a/client/deps/glbench/src/utils.cc |
+++ b/client/deps/glbench/src/utils.cc |
@@ -8,11 +8,9 @@ |
#include <sys/mman.h> |
#include <unistd.h> |
-#include "utils.h" |
- |
-#include "base/file_path.h" |
#include "base/logging.h" |
#include "main.h" |
+#include "utils.h" |
FilePath *g_base_path = new FilePath(); |
@@ -26,6 +24,10 @@ void SetBasePathFromArgv0(const char* argv0, const char* relative) { |
g_base_path = new FilePath(base_path); |
} |
+const FilePath& GetBasePath() { |
+ return *g_base_path; |
+} |
+ |
void *MmapFile(const char* name, size_t* length) { |
FilePath filename = g_base_path->Append(name); |
int fd = open(filename.value().c_str(), O_RDONLY); |