aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Kostanbaev <sergey.kostanbaev@gmail.com>2018-10-23 14:17:08 +0300
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2019-10-09 01:47:55 +0300
commitbcd1e7255838524c50bc3e36cb9032151e9b1344 (patch)
treecc40585fe8b3c330b4500d3db9772383c1fb7d16
parent928141b7d682a80b12875ef5d288646755dba44e (diff)
CommonLibs: check HAVE_CONFIG_H before including it
-rw-r--r--CommonLibs/trx_vty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/CommonLibs/trx_vty.c b/CommonLibs/trx_vty.c
index bac9653..9a9e040 100644
--- a/CommonLibs/trx_vty.c
+++ b/CommonLibs/trx_vty.c
@@ -37,7 +37,10 @@
#include "trx_rate_ctr.h"
#include "trx_vty.h"
-#include "../config.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
static struct trx_ctx* g_trx_ctx;