diff options
author | 2015-11-12 16:08:48 +0200 | |
---|---|---|
committer | 2015-11-12 16:08:48 +0200 | |
commit | 46c10e91995c82bd26cd6421b3be93183c85444d (patch) | |
tree | ab0352c7ba65f0c0c88f66b4b0ef2a9e3bd094e1 /src | |
parent | 45b71cff9d0465b77f82e4cd40b64a9f3183c1c7 (diff) |
fix version.h issue
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_general.cpp | 4 |
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 ¶ms, Json::Value &result) { Json::Value §ion = result["result"]; - #ifndef TREX_RPC_MOCK_SERVER + #ifdef RTE_DPDK section["version"] = VERSION_BUILD_NUM; section["build_date"] = get_build_date(); |