VTY: Allow to compile vty.h and command.h headers with C++
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index c8cea7c..caafdeb 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -26,7 +26,6 @@
#include <stdio.h>
#include <sys/types.h>
#include "vector.h"
-#include "vty.h"
/*! \defgroup command VTY Command
* @{
@@ -88,6 +87,8 @@
_LAST_OSMOVTY_NODE
};
+#include "vty.h"
+
/*! \brief Node which has some commands and prompt string and
* configuration function pointer . */
struct cmd_node {