summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-06-18 15:30:32 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-06-18 15:41:34 -0400
commit4ca5ef47c46c8e26b23e881bdd6faad848413f75 (patch)
tree9656ca0e7dc20a607382c8ee6eabb4fb5bcbb48a /src
parent5d59ca8bbb1bfc557971c24a87e8ef9db9b69c33 (diff)
Fix for mac readline.
Diffstat (limited to 'src')
-rw-r--r--src/main/interactive_shell.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp
index a19e23725..7d3742cf4 100644
--- a/src/main/interactive_shell.cpp
+++ b/src/main/interactive_shell.cpp
@@ -43,7 +43,9 @@
#if HAVE_LIBREADLINE
# include <readline/readline.h>
# include <readline/history.h>
-# include <ext/stdio_filebuf.h>
+# if HAVE_EXT_STDIO_FILEBUF_H
+# include <ext/stdio_filebuf.h>
+# endif /* HAVE_EXT_STDIO_FILEBUF_H */
#endif /* HAVE_LIBREADLINE */
using namespace std;
@@ -57,7 +59,9 @@ const string InteractiveShell::INPUT_FILENAME = "<shell>";
#if HAVE_LIBREADLINE
+#if HAVE_EXT_STDIO_FILEBUF_H
using __gnu_cxx::stdio_filebuf;
+#endif /* HAVE_EXT_STDIO_FILEBUF_H */
char** commandCompletion(const char* text, int start, int end);
char* commandGenerator(const char* text, int state);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback