summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/madc.cpp')
-rw-r--r--src/madc.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/madc.cpp b/src/madc.cpp
index 0500c0f..c55fd3e 100644
--- a/src/madc.cpp
+++ b/src/madc.cpp
@@ -17,6 +17,8 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include "Core/ConfigManager.h"
#include "Common/ClientConnection.h"
@@ -31,8 +33,12 @@
#include <iostream>
-#include <readline/readline.h>
-#include <readline/history.h>
+#ifdef EDITLINE_FOUND
+# include <editline/readline.h>
+#else
+# include <readline/readline.h>
+# include <readline/history.h>
+#endif
using namespace Mad;