summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-11-12 16:08:48 +0200
committerHanoh Haim <hhaim@cisco.com>2015-11-12 16:08:48 +0200
commit46c10e91995c82bd26cd6421b3be93183c85444d (patch)
treeab0352c7ba65f0c0c88f66b4b0ef2a9e3bd094e1
parent45b71cff9d0465b77f82e4cd40b64a9f3183c1c7 (diff)
fix version.h issue
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_general.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_general.cpp b/src/rpc-server/commands/trex_rpc_cmd_general.cpp
index b6d06cfc..1a7132ff 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_general.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_general.cpp
@@ -29,7 +29,7 @@ limitations under the License.
#include <iostream>
#include <unistd.h>
-#ifndef TREX_RPC_MOCK_SERVER
+#ifdef RTE_DPDK
#include <../linux_dpdk/version.h>
#endif
@@ -73,7 +73,7 @@ TrexRpcCmdGetVersion::_run(const Json::Value &params, Json::Value &result) {
Json::Value &section = result["result"];
- #ifndef TREX_RPC_MOCK_SERVER
+ #ifdef RTE_DPDK
section["version"] = VERSION_BUILD_NUM;
section["build_date"] = get_build_date();