diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/madc.cpp | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 72ed248..b705a89 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,4 +25,4 @@ add_executable(mad mad.cpp) target_link_libraries(mad Daemon Common Net Core) add_executable(madc madc.cpp) -target_link_libraries(madc Client Common Net Core ${READLINE_LIBRARY}) +target_link_libraries(madc Client Common Net Core ${EDITLINE_LIBRARY}) 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; |