aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-07-18 13:27:31 +0800
committerkuriyama <kuriyama@FreeBSD.org>2003-07-18 13:27:31 +0800
commitbcb40644d69faa09f6c56ae6a443792c9e41ee99 (patch)
tree869027513f2914bfaab9d74585cbedad9777d3c3 /textproc
parent48e012743e3b227655f15e8d3be5591222fe4df6 (diff)
downloadfreebsd-ports-gnome-bcb40644d69faa09f6c56ae6a443792c9e41ee99.tar.gz
freebsd-ports-gnome-bcb40644d69faa09f6c56ae6a443792c9e41ee99.tar.zst
freebsd-ports-gnome-bcb40644d69faa09f6c56ae6a443792c9e41ee99.zip
Add explicit cast to C++ include files to unbreak openjade on
gcc 3.3.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/opensp/Makefile1
-rw-r--r--textproc/opensp/files/patch-Ptr.cxx11
-rw-r--r--textproc/opensp/files/patch-Ptr.h10
3 files changed, 22 insertions, 0 deletions
diff --git a/textproc/opensp/Makefile b/textproc/opensp/Makefile
index d3fd2132573b..67b573ad2752 100644
--- a/textproc/opensp/Makefile
+++ b/textproc/opensp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= OpenSP
PORTVERSION= 1.5
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openjade
diff --git a/textproc/opensp/files/patch-Ptr.cxx b/textproc/opensp/files/patch-Ptr.cxx
new file mode 100644
index 000000000000..400534a7f53f
--- /dev/null
+++ b/textproc/opensp/files/patch-Ptr.cxx
@@ -0,0 +1,11 @@
+--- include/Ptr.cxx.orig Fri Jul 18 14:11:13 2003
++++ include/Ptr.cxx Fri Jul 18 14:11:32 2003
+@@ -19,7 +19,7 @@
+ Ptr<T>::~Ptr()
+ {
+ if (ptr_) {
+- if (ptr_->unref())
++ if (((Resource*)ptr_)->unref())
+ delete ptr_;
+ ptr_ = 0;
+ }
diff --git a/textproc/opensp/files/patch-Ptr.h b/textproc/opensp/files/patch-Ptr.h
new file mode 100644
index 000000000000..9bef362ff78c
--- /dev/null
+++ b/textproc/opensp/files/patch-Ptr.h
@@ -0,0 +1,10 @@
+--- include/Ptr.h.orig Fri Jul 18 14:11:08 2003
++++ include/Ptr.h Fri Jul 18 14:11:22 2003
+@@ -5,6 +5,7 @@
+ #define Ptr_INCLUDED 1
+
+ #include "Boolean.h"
++#include "Resource.h"
+
+ // T must have Resource as a public base class
+ // T may be an incomplete type