summaryrefslogtreecommitdiff
path: root/system.c
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-02-18 12:30:53 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:04 +0100
commita33cdf2c71aec230b14a0e07317e0a38d743089b (patch)
treed45ca0d1236a7e494f8e78a8fa2b28c003f70e1f /system.c
parent4682c96c0bd432f41abb6d83b9edf8bce195ce40 (diff)
move rc_readline to rdwr.c
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