From: Douglas William Thrift Date: Sun, 18 Apr 2010 12:01:45 +0000 (+0000) Subject: Just to be safe. X-Git-Tag: v0.9.432~86 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/aff874250f2381788739ce0e6b5717ba1907e624?ds=sidebyside Just to be safe. --- 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@