summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/devtodo/files/devtodo-fix-TERM-sigabrt.patch')
-rw-r--r--app-misc/devtodo/files/devtodo-fix-TERM-sigabrt.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/app-misc/devtodo/files/devtodo-fix-TERM-sigabrt.patch b/app-misc/devtodo/files/devtodo-fix-TERM-sigabrt.patch
deleted file mode 100644
index e90f4626cb12..000000000000
--- a/app-misc/devtodo/files/devtodo-fix-TERM-sigabrt.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- src/todoterm.cc.orig 2004-08-13 00:11:52.095224000 -0400
-+++ src/todoterm.cc 2004-08-13 01:15:38.901461024 -0400
-@@ -2,6 +2,7 @@
- #include "todoterm.h"
-
- #ifdef USETERMCAP
-+#include <iostream>
- #include <string>
- #include <stdexcept>
- #include <curses.h>
-@@ -14,7 +15,11 @@
- int getWidth() {
- if (!info[2047]) {
- char const *termtype = getenv("TERM");
-- if (!termtype) throw runtime_error("can't get terminal type, please set TERM envar");
-+ if (!termtype) {
-+ cerr << "can't get terminal type, defaulting to vt100." << endl;
-+ cerr << "please set the TERM env variable." << endl;
-+ setenv("TERM", "vt100", 0);
-+ }
- int result = tgetent(info, getenv("TERM"));
- if (result < 0)
- throw runtime_error("could not access termcap database");