summaryrefslogtreecommitdiff
path: root/Src/Modules/termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/termcap.c')
-rw-r--r--Src/Modules/termcap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index 9c72bf27f..dad47aa17 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -32,6 +32,8 @@
/* echotc: output a termcap */
+#ifdef HAVE_TGETENT
+
/**/
static int
bin_echotc(char *name, char **argv, char *ops, int func)
@@ -100,6 +102,12 @@ bin_echotc(char *name, char **argv, char *ops, int func)
return 0;
}
+#else /* ! HAVE_TGETENT */
+
+#define bin_echotc bin_notavail
+
+#endif /* HAVE_TGETENT */
+
static struct builtin bintab[] = {
BUILTIN("echotc", 0, bin_echotc, 1, -1, 0, NULL, NULL),
};