summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */