summaryrefslogtreecommitdiff
path: root/lang/bwbasic/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-30 23:29:36 +0000
committerjoerg <joerg>2005-12-30 23:29:36 +0000
commitad3597454de9a89ba0e5f67831cf1c5c4a3cb50e (patch)
tree1b96b962eb0d3745ccc40741c15c533e951deba9 /lang/bwbasic/patches
parent4f78cd59f92eff2d13da9c8a6794ce994b11dbad (diff)
downloadpkgsrc-ad3597454de9a89ba0e5f67831cf1c5c4a3cb50e.tar.gz
Move init of errfdevice to bwb_init, it should be the first
function which is ran and stderr can't be used as lvalue in file scope.
Diffstat (limited to 'lang/bwbasic/patches')
-rw-r--r--lang/bwbasic/patches/patch-ab22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/bwbasic/patches/patch-ab b/lang/bwbasic/patches/patch-ab
new file mode 100644
index 00000000000..a2787303c18
--- /dev/null
+++ b/lang/bwbasic/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2005/12/30 23:29:36 joerg Exp $
+
+--- bwbasic-2.20/bwbasic.c.orig 2005-12-30 23:25:02.000000000 +0000
++++ bwbasic-2.20/bwbasic.c
+@@ -51,7 +51,7 @@
+ char *bwb_ebuf; /* error buffer */
+ static char *read_line;
+ int bwb_trace = FALSE;
+-FILE *errfdevice = stderr; /* output device for error messages */
++FILE *errfdevice; /* output device for error messages */
+
+ #if HAVE_LONGJUMP
+ jmp_buf mark;
+@@ -133,6 +133,8 @@ bwb_init( argc, argv )
+ static char end_buf[] = "\0";
+ #endif
+
++ errfdevice = stderr;
++
+ #if INTENSIVE_DEBUG
+ prn_xprintf( stderr, "Memory Allocation Statistics:\n" );
+ prn_xprintf( stderr, "----------------------------\n" );