--- cpp/util/testing.cc.orig 2015-10-23 16:31:08.000000000 +0200 +++ cpp/util/testing.cc 2015-10-30 10:54:40.169083000 +0100 @@ -3,6 +3,9 @@ #include #include #include +// Without this, build will fail due to clash between onigposix.h +// and regex.h. +#define GTEST_HAS_POSIX_RE 0 #include #include "config.h" @@ -15,7 +18,7 @@ namespace test { void InitTesting(const char* name, int* argc, char*** argv, bool remove_flags) { ::testing::InitGoogleTest(argc, *argv); - google::ParseCommandLineFlags(argc, argv, remove_flags); + gflags::ParseCommandLineFlags(argc, argv, remove_flags); google::InitGoogleLogging(name); google::InstallFailureSignalHandler(); evthread_use_pthreads();