aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-12-18 07:42:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-12-18 07:42:30 +0000
commitf4b9b8419049576d404637a7d7d2df89b703a283 (patch)
tree95c42ba7d93ee40faf10f12fb7323354751488ea
parentf9e513895c889b59f1d494eb57b475c215dc7036 (diff)
downloadrtmux-f4b9b8419049576d404637a7d7d2df89b703a283.tar.gz
rtmux-f4b9b8419049576d404637a7d7d2df89b703a283.tar.bz2
rtmux-f4b9b8419049576d404637a7d7d2df89b703a283.zip
FreeBSD 6.x has a bug and crashes in del_curterm, so ifdef it out on that
platform.
-rw-r--r--tty-term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index dc6b0f01..30bcb7fe 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -1,4 +1,4 @@
-/* $Id: tty-term.c,v 1.40 2009-12-04 22:14:47 tcunha Exp $ */
+/* $Id: tty-term.c,v 1.41 2009-12-18 07:42:30 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -376,7 +376,9 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
tty_term_override(term, overrides);
/* Delete curses data. */
+#if !defined(__FreeBSD_version) || __FreeBSD_version >= 700000
del_curterm(cur_term);
+#endif
/* These are always required. */
if (!tty_term_has(term, TTYC_CLEAR)) {