summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2018-11-18 13:02:47 +0100
committerlaforge <laforge@gnumonks.org>2019-09-02 09:12:27 +0000
commit766f77c3d9b479b49e6e2bc2b105ceb4889304d3 (patch)
tree877d6b1557adc16b88d54ff8d15d762aa306e9c4
parente674c44c3073705ae46b668cd86100bd9c90db98 (diff)
MAXPATHLEN set if not defined
Change-Id: I1dce8ace228814b5a7246a00b31309ab9461d266
-rw-r--r--src/vty/command.c5
-rw-r--r--src/vty/vty.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index 454a10c3..35169eb0 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -47,6 +47,11 @@ Boston, MA 02110-1301, USA. */
#include <osmocom/core/talloc.h>
#include <osmocom/core/utils.h>
+#ifndef MAXPATHLEN
+ #define MAXPATHLEN 4096
+#endif
+
+
/*! \addtogroup command
* @{
* VTY command handling
diff --git a/src/vty/vty.c b/src/vty/vty.c
index aa23fa00..babe0ef6 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -67,6 +67,11 @@
#include <osmocom/vty/buffer.h>
#include <osmocom/core/talloc.h>
+#ifndef MAXPATHLEN
+ #define MAXPATHLEN 4096
+#endif
+
+
/* \addtogroup vty
* @{
* \file vty.c */