summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-09 06:30:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-09 06:30:01 -0700
commitf1283c762dbb0476de0eb9398e08aa0f2988e632 (patch)
tree2c092ae3a4398ebe214081501f4ddb2c9f867a15 /txr.c
parent76a770d9826c080f4d6be2cc959c3ce3e972c1b8 (diff)
downloadtxr-f1283c762dbb0476de0eb9398e08aa0f2988e632.tar.gz
txr-f1283c762dbb0476de0eb9398e08aa0f2988e632.tar.bz2
txr-f1283c762dbb0476de0eb9398e08aa0f2988e632.zip
Wrap call to repl with #if HAVE_TERMIOS.
* txr.c (txr_main): The repl funtion is not declared unless HAVE_TERMIOS is present and nonzero.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/txr.c b/txr.c
index b395b185..a7777c1f 100644
--- a/txr.c
+++ b/txr.c
@@ -759,7 +759,9 @@ int txr_main(int argc, char **argv)
return result ? 0 : EXIT_FAILURE;
repl:
+#if HAVE_TERMIOS
repl(bindings, std_input, std_output);
+#endif
return 0;
}
}