mirror of https://github.com/tmux/tmux.git
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.pull/1/head
parent
809902226e
commit
399002baa4
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id: configure,v 1.45 2009-11-11 09:54:07 nicm Exp $
|
||||
# $Id: configure,v 1.46 2009-11-26 09:19:04 nicm Exp $
|
||||
#
|
||||
# Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
#
|
||||
|
@ -29,6 +29,7 @@ echo "# $TMUX_PLATFORM" >$CONFIG_MK
|
|||
cat <<EOF >>$CONFIG_H
|
||||
#undef HAVE_ASPRINTF
|
||||
#undef HAVE_BROKEN_CMSG_FIRSTHDR
|
||||
#undef HAVE_BROKEN_CURSES_H
|
||||
#undef HAVE_BROKEN_KQUEUE
|
||||
#undef HAVE_BROKEN_POLL
|
||||
#undef HAVE_BZERO
|
||||
|
@ -230,6 +231,7 @@ EOF
|
|||
NetBSD)
|
||||
cat <<EOF >>$CONFIG_H
|
||||
#define HAVE_ASPRINTF
|
||||
#define HAVE_BROKEN_CURSES_H
|
||||
#define HAVE_BZERO
|
||||
#define HAVE_DAEMON
|
||||
#define HAVE_FGETLN
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Reference in New Issue