From 746ee5158493cbb64911fc434cd1f7ddb963df8f Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 23 Jul 2023 18:28:55 +0800 Subject: [PATCH] fix: benchmark in linux --- benchmark/benchmark_ipc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmark/benchmark_ipc.cpp b/benchmark/benchmark_ipc.cpp index 066f93c..8f31013 100644 --- a/benchmark/benchmark_ipc.cpp +++ b/benchmark/benchmark_ipc.cpp @@ -1,3 +1,5 @@ +#include +#if defined(LIBIMP_OS_LINUX) #include #include @@ -20,7 +22,7 @@ #include "test_util.h" -#include "libipc/shm.h" +#include namespace { @@ -401,3 +403,4 @@ BENCHMARK(ipc_npipe_rtt); BENCHMARK(ipc_sock_rtt); BENCHMARK(ipc_udp_rtt); BENCHMARK(ipc_inotify_rtt); +#endif \ No newline at end of file