diff options
author | joerg <joerg@pkgsrc.org> | 2005-11-10 18:25:42 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-11-10 18:25:42 +0000 |
commit | 43b5d9ae832e2442891663e9ae8460d572c14044 (patch) | |
tree | 182c598aab30e55b1cfa65a8a7e56e7ea5dce607 | |
parent | 6e4272b21d8ab253dea7bcbfdb3707d03568cbc8 (diff) | |
download | pkgsrc-43b5d9ae832e2442891663e9ae8460d572c14044.tar.gz |
Depend on errno.h for errno.
Don't depend on stdio and stdout to be static values, move the
initialisation to run time.
-rw-r--r-- | misc/splitvt/distinfo | 5 | ||||
-rw-r--r-- | misc/splitvt/patches/patch-aa | 13 | ||||
-rw-r--r-- | misc/splitvt/patches/patch-ab | 45 | ||||
-rw-r--r-- | misc/splitvt/patches/patch-ac | 13 |
4 files changed, 75 insertions, 1 deletions
diff --git a/misc/splitvt/distinfo b/misc/splitvt/distinfo index 320098f8847..24404a9ef0a 100644 --- a/misc/splitvt/distinfo +++ b/misc/splitvt/distinfo @@ -1,5 +1,8 @@ -$NetBSD: distinfo,v 1.3 2005/02/24 11:02:58 agc Exp $ +$NetBSD: distinfo,v 1.4 2005/11/10 18:25:42 joerg Exp $ SHA1 (splitvt-1.6.3.tar.gz) = 0a2ca870a770b663b50b92881e31eb3492107cec RMD160 (splitvt-1.6.3.tar.gz) = 57606675f2e482fc594b9548f0b3949c222dfd0a Size (splitvt-1.6.3.tar.gz) = 57692 bytes +SHA1 (patch-aa) = ee16f9bb4b04d65c41ff71a6bc961bf3838e3648 +SHA1 (patch-ab) = b62558586fb2cf5a71273369b938612933606310 +SHA1 (patch-ac) = b98a3c94d27799a4b9d94ccfef0d2de343becdf1 diff --git a/misc/splitvt/patches/patch-aa b/misc/splitvt/patches/patch-aa new file mode 100644 index 00000000000..2049b5e1151 --- /dev/null +++ b/misc/splitvt/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1 2005/11/10 18:25:42 joerg Exp $ + +--- splitvt.c.orig 2005-11-10 18:17:36.000000000 +0000 ++++ splitvt.c +@@ -102,7 +102,7 @@ main(argc, argv) + int argc; + char *argv[]; + { +- extern int errno, optind; ++ extern int optind; + extern char *optarg; + + int i, len, maxfds, numready; diff --git a/misc/splitvt/patches/patch-ab b/misc/splitvt/patches/patch-ab new file mode 100644 index 00000000000..7ab12f69d44 --- /dev/null +++ b/misc/splitvt/patches/patch-ab @@ -0,0 +1,45 @@ +$NetBSD: patch-ab,v 1.1 2005/11/10 18:25:42 joerg Exp $ + +--- vtmouse.c.orig 2005-11-10 18:18:59.000000000 +0000 ++++ vtmouse.c +@@ -81,7 +81,7 @@ int main(int argc, char *argv[]) + #endif + + /* I/O streams default to stdin and stdout. */ +-FILE *xt_input=stdin, *xt_output=stdout; ++FILE *xt_input = NULL, *xt_output = NULL; + static int have_xterm=0; + static int set_title=0; + static char *old_title=NULL; +@@ -118,6 +118,9 @@ static char *get_xtitle() + static void set_xtitle(titlebar) + char *titlebar; + { ++ if (xt_output == NULL) ++ xt_output = stdout; ++ + fprintf(xt_output, "\033]0;%s\07", titlebar); + fflush(xt_output); + } +@@ -166,6 +169,11 @@ struct event *X_event; + window *thiswin; + #endif + ++ if (xt_input == NULL) ++ xt_input = stdin; ++ if (xt_output == NULL) ++ xt_output = stdout; ++ + X_event->happening=0; + + if ( have_xterm ) { +@@ -277,6 +285,9 @@ struct event *X_event; + + void event_quit() + { ++ if (xt_output == NULL) ++ xt_output = stdout; ++ + if ( have_xterm ) { + #ifdef REPORT_SELECTION + fprintf(xt_output, "\033[?1001l"); diff --git a/misc/splitvt/patches/patch-ac b/misc/splitvt/patches/patch-ac new file mode 100644 index 00000000000..02b50755b19 --- /dev/null +++ b/misc/splitvt/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2005/11/10 18:25:42 joerg Exp $ + +--- parserc.c.orig 2005-11-10 18:22:31.000000000 +0000 ++++ parserc.c +@@ -154,8 +154,6 @@ char *args[]; + static int safe_chdir(directory) + char *directory; + { +- extern int errno; +- + char *subdir=NULL; + struct stat sb; + int nslashes=0, chdir_ret; |