aboutsummaryrefslogtreecommitdiff
path: root/graphics/xmagv
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-20 10:18:17 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-20 10:18:17 +0000
commitb37385ed08e72cde9b4aa62e324c07a639314a54 (patch)
treea0e4641eeef3cb07f091fa3f369f898e1522611d /graphics/xmagv
parentce4179680ec644df004702d9cc7c0f2bcf2732ba (diff)
downloadports-b37385ed08e72cde9b4aa62e324c07a639314a54.tar.gz
ports-b37385ed08e72cde9b4aa62e324c07a639314a54.zip
Partially fix build on -current (move initialization of a FILE * from
declaration to main()). This is still broken due to an unzeroed malloc() bug in imake-4
Notes
Notes: svn path=/head/; revision=68410
Diffstat (limited to 'graphics/xmagv')
-rw-r--r--graphics/xmagv/files/patch-aa11
-rw-r--r--graphics/xmagv/files/patch-ab11
2 files changed, 22 insertions, 0 deletions
diff --git a/graphics/xmagv/files/patch-aa b/graphics/xmagv/files/patch-aa
new file mode 100644
index 000000000000..f2c79682b620
--- /dev/null
+++ b/graphics/xmagv/files/patch-aa
@@ -0,0 +1,11 @@
+--- error.h.orig Sun Oct 20 03:17:10 2002
++++ error.h Sun Oct 20 03:17:15 2002
+@@ -15,7 +15,7 @@
+ #ifdef PUBLIC
+ char *errname = NULL;
+ int errcode = -1;
+-FILE *errstream = stderr;
++FILE *errstream;
+ #else
+ # define PUBLIC extern
+ extern char *errname;
diff --git a/graphics/xmagv/files/patch-ab b/graphics/xmagv/files/patch-ab
new file mode 100644
index 000000000000..1f5416696462
--- /dev/null
+++ b/graphics/xmagv/files/patch-ab
@@ -0,0 +1,11 @@
+--- xmagv.c.orig Sun Oct 20 03:17:30 2002
++++ xmagv.c Sun Oct 20 03:17:55 2002
+@@ -1483,6 +1483,8 @@
+ int i, ac;
+ char **av;
+
++ errstream = stderr;
++
+ argumentc = argc;
+ argumentv = argv;
+ memset(bitmap_fg, 0, sizeof(bitmap_fg));