summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/input.c b/unix/input.c
index 2676b2e224..8fd5cba080 100644
--- a/unix/input.c
+++ b/unix/input.c
@@ -36,6 +36,9 @@
#include <readline/readline.h>
#include <readline/history.h>
#include <readline/tilde.h>
+#else
+#undef MICROPY_USE_READLINE_HISTORY
+#define MICROPY_USE_READLINE_HISTORY (0)
#endif
char *prompt(char *p) {