summaryrefslogtreecommitdiff
path: root/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'system.c')
-rw-r--r--system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/system.c b/system.c
index 4ce97de..e23a6f4 100644
--- a/system.c
+++ b/system.c
@@ -12,3 +12,9 @@ extern void writeall(int fd, char *buf, size_t remain) {
extern int rc_read(int fd, char *buf, size_t n) {
return read(fd, buf, n);
}
+
+#if READLINE
+extern char *rc_readline(char *prompt) {
+ return readline(prompt);
+}
+#endif