diff options
| author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-07-18 05:27:31 +0000 |
|---|---|---|
| committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-07-18 05:27:31 +0000 |
| commit | 707e0903552a1079cce9015600a34c66bc986952 (patch) | |
| tree | e8b80ae7e77d9a7c1a8a67bde28a696b6457df54 /textproc/opensp/files | |
| parent | update devel/semantic: 1.4 -> 1.4.4 (diff) | |
Add explicit cast to C++ include files to unbreak openjade on
gcc 3.3.
Diffstat (limited to 'textproc/opensp/files')
| -rw-r--r-- | textproc/opensp/files/patch-Ptr.cxx | 11 | ||||
| -rw-r--r-- | textproc/opensp/files/patch-Ptr.h | 10 |
2 files changed, 21 insertions, 0 deletions
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 |
