diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-05 18:30:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-05 18:30:59 +0000 |
commit | 1664698e4d30725cc43da3862741915899e7393b (patch) | |
tree | 0e093b17f1fb849dd65121b0f547518be79dfe8e /time | |
parent | 13b9acb77fcdb9934f6ae2d296f1f5c9b4e15eb3 (diff) | |
download | pkgsrc-1664698e4d30725cc43da3862741915899e7393b.tar.gz |
Just use extern declarations of tgetent() and tgetnum() instead of
figuring out whether to include <termcap.h> or <curses.h> and <term.h>.
Diffstat (limited to 'time')
-rw-r--r-- | time/devtodo/distinfo | 4 | ||||
-rw-r--r-- | time/devtodo/patches/patch-ab | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/time/devtodo/distinfo b/time/devtodo/distinfo index c87484c9186..bff0fcfeafe 100644 --- a/time/devtodo/distinfo +++ b/time/devtodo/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.11 2008/03/05 16:51:40 jlam Exp $ +$NetBSD: distinfo,v 1.12 2008/03/05 18:30:59 jlam Exp $ SHA1 (devtodo-0.1.20.tar.gz) = 003067a12139d712dbb3706069e0950a93ecaaf4 RMD160 (devtodo-0.1.20.tar.gz) = 389201318faa5ff6d302bd5f8c8f8b094664b45c Size (devtodo-0.1.20.tar.gz) = 390935 bytes -SHA1 (patch-ab) = 32844dec69a473020103c9fd3425c60042dadf35 +SHA1 (patch-ab) = 88507dd1f88d13e3882f9a3a2d815172c132d0b5 SHA1 (patch-ae) = 5f5ffb9571e73656eecdd3cb6cf72e26c193847e diff --git a/time/devtodo/patches/patch-ab b/time/devtodo/patches/patch-ab index 2bdec0f9feb..7e649ce3236 100644 --- a/time/devtodo/patches/patch-ab +++ b/time/devtodo/patches/patch-ab @@ -1,16 +1,16 @@ -$NetBSD: patch-ab,v 1.3 2005/06/01 02:40:43 snj Exp $ +$NetBSD: patch-ab,v 1.4 2008/03/05 18:30:59 jlam Exp $ ---- src/todoterm.cc.orig 2005-05-31 19:12:33.000000000 -0700 -+++ src/todoterm.cc 2005-05-31 19:13:02.000000000 -0700 -@@ -6,7 +6,11 @@ +--- src/todoterm.cc.orig 2007-06-28 09:04:36.000000000 -0400 ++++ src/todoterm.cc +@@ -5,8 +5,9 @@ + #include <iostream> #include <string> #include <stdexcept> - #include <curses.h> -+#ifdef __NetBSD__ -+#include <termcap.h> -+#else - #include <term.h> -+#endif +-#include <curses.h> +-#include <term.h> ++ ++extern "C" int tgetent(char *, const char *); ++extern "C" int tgetnum(const char *); static char info[2048]; static bool term_initialized; |