tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
how to use ncurses' term.h? (misc/tmux)
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"
Home |
Main Index |
Thread Index |
Old Index