From aff874250f2381788739ce0e6b5717ba1907e624 Mon Sep 17 00:00:00 2001 From: Douglas William Thrift Date: Sun, 18 Apr 2010 12:01:45 +0000 Subject: [PATCH] Just to be safe. --- Console.cpp | 9 +++++++++ GNUmakefile.in | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Console.cpp b/Console.cpp index b6bcedf..8e1c0da 100644 --- a/Console.cpp +++ b/Console.cpp @@ -48,8 +48,17 @@ #include +#ifdef HAVE_READLINE_H +#include +#else #include +#endif + +#ifdef HAVE_HISTORY_H +#include +#else #include +#endif #include diff --git a/GNUmakefile.in b/GNUmakefile.in index a2d4cf7..7c114f6 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -15,7 +15,7 @@ flex := @FLEX@ libtool := @LIBTOOL@ cxx := @CXX@ objcxx := @OBJCXX@ -cflags := @CPPFLAGS@ @CXXFLAGS@ -DYYDEBUG=1 $(filter -DHAVE_FFI%,@DEFS@) +cflags := @CPPFLAGS@ @CXXFLAGS@ -DYYDEBUG=1 $(filter -DHAVE_FFI% -DHAVE_READLINE% -DHAVE_HISTORY_H,@DEFS@) objcxxflags := @OBJCXXFLAGS@ ldflags := @LDFLAGS@ library := @LIBS@ @LTLIBAPR@ @LTLIBICONV@ -- 2.45.2