summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-20 18:47:46 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-20 19:06:12 +0200
commit6666bbf908b3f2a61a9ec1959e975de54dc23b0d (patch)
treed0d619da5220c9386c1c90284be18f4d840b0dbc /src/madc.cpp
parent36792c7b489c984db95e2384660f1933c0498db0 (diff)
downloadmad-6666bbf908b3f2a61a9ec1959e975de54dc23b0d.tar
mad-6666bbf908b3f2a61a9ec1959e975de54dc23b0d.zip
madc: Added support for BSD editline
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;