aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-11-26 09:19:05 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-11-26 09:19:05 +0000
commit399002baa4661a8191170cba6385cbf9aba9d1c0 (patch)
treeaf762e5a91bf17b344cfa9201489942d66999cc4 /tty-term.c
parent809902226e8e852858bef16e9045b570a1d8d035 (diff)
downloadrtmux-399002baa4661a8191170cba6385cbf9aba9d1c0.tar.gz
rtmux-399002baa4661a8191170cba6385cbf9aba9d1c0.tar.bz2
rtmux-399002baa4661a8191170cba6385cbf9aba9d1c0.zip
Despite terminfo being in use for around 20 years, NetBSD still haven't got
their act together, so add an ifdef to use ncurses.h instead of curses.h. Untested.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tty-term.c b/tty-term.c
index 53f63aa3..596b293a 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -1,4 +1,4 @@
-/* $Id: tty-term.c,v 1.36 2009-11-13 16:57:21 tcunha Exp $ */
+/* $Id: tty-term.c,v 1.37 2009-11-26 09:19:05 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -18,12 +18,17 @@
#include <sys/types.h>
-#include <curses.h>
#include <fnmatch.h>
#include <stdlib.h>
#include <string.h>
#include <term.h>
+#ifdef HAVE_BROKEN_CURSES_H
+#include <ncurses.h>
+#else
+#include <curses.h>
+#endif
+
#include "tmux.h"
void tty_term_override(struct tty_term *, const char *);