summaryrefslogtreecommitdiff
path: root/time/devtodo
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-05 18:30:59 +0000
committerjlam <jlam>2008-03-05 18:30:59 +0000
commitb006520594ae063a4e1204f9f5a8269c7fd63f3e (patch)
tree0e093b17f1fb849dd65121b0f547518be79dfe8e /time/devtodo
parentb9c5f32db638ee7d7e480fc8b0bbc245df9fad81 (diff)
downloadpkgsrc-b006520594ae063a4e1204f9f5a8269c7fd63f3e.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/devtodo')
-rw-r--r--time/devtodo/distinfo4
-rw-r--r--time/devtodo/patches/patch-ab20
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;