tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: how to use ncurses' term.h? (misc/tmux)



On Tue, 14 Jul 2009 00:47:39 +0200 (CEST)
Hubert Feyrer <hubert%feyrer.de@localhost> wrote:

> 
> pkgsrc/misc/tmux fails to build on NetBSD (5.0/i386, pkgsrc-current) as it 
> can't find term.h. The patch below uses <ncurses/term.h> instead of 
> <term.h>, but I wonder if that's the right fix.
> 
> Someone please advise (else I'll commit the patch below :).
> 
> FWIW, the buildlink dir has:
> % ls -l work.vmnetbsd5/.buildlink/include
> total 24
> lrwxr-xr-x   1 feyrer  staff   33 Jul 14 00:44 curses.h -> 
> /usr/pkg/include/ncurses/curses.h
> drwxr-xr-x  22 feyrer  staff  748 Jul 14 00:44 ncurses
> lrwxr-xr-x   1 feyrer  staff   34 Jul 14 00:44 ncurses.h -> 
> /usr/pkg/include/ncurses/ncurses.h
> 
> 
>   - Hubert
> 
> 
> --- tty-term.c.orig   2009-07-04 00:31:30.000000000 +0200
> +++ tty-term.c
> @@ -20,7 +20,11 @@
> 
>   #include <ncurses.h>
>   #include <string.h>
> +#ifdef __NetBSD__
> +#include <ncurses/term.h>
> +#else
>   #include <term.h>
> +#endif
> 
>   #include "tmux.h"
> 

Yeah, sorry I didnt think of stuff including term.h directly,
should be fixed now (reinstall ncurses).


-- 
Adam Hoka <Adam.Hoka%Gmail.com@localhost>
Adam Hoka <ahoka%NetBSD.org@localhost>
Adam Hoka <ahoka%MirBSD.de@localhost>


Home | Main Index | Thread Index | Old Index