pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/splitvt Depend on errno.h for errno.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/476edf6db7ad
branches:  trunk
changeset: 502912:476edf6db7ad
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Nov 10 18:25:42 2005 +0000

description:
Depend on errno.h for errno.
Don't depend on stdio and stdout to be static values, move the
initialisation to run time.

diffstat:

 misc/splitvt/distinfo         |   5 +++-
 misc/splitvt/patches/patch-aa |  13 ++++++++++++
 misc/splitvt/patches/patch-ab |  45 +++++++++++++++++++++++++++++++++++++++++++
 misc/splitvt/patches/patch-ac |  13 ++++++++++++
 4 files changed, 75 insertions(+), 1 deletions(-)

diffs (96 lines):

diff -r b2575cd93e35 -r 476edf6db7ad misc/splitvt/distinfo
--- a/misc/splitvt/distinfo     Thu Nov 10 18:13:53 2005 +0000
+++ b/misc/splitvt/distinfo     Thu Nov 10 18:25:42 2005 +0000
@@ -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 -r b2575cd93e35 -r 476edf6db7ad misc/splitvt/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/splitvt/patches/patch-aa     Thu Nov 10 18:25:42 2005 +0000
@@ -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 -r b2575cd93e35 -r 476edf6db7ad misc/splitvt/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/splitvt/patches/patch-ab     Thu Nov 10 18:25:42 2005 +0000
@@ -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 -r b2575cd93e35 -r 476edf6db7ad misc/splitvt/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/splitvt/patches/patch-ac     Thu Nov 10 18:25:42 2005 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index