diff options
author | rakuco <rakuco@FreeBSD.org> | 2011-12-31 09:53:11 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2011-12-31 09:53:11 +0800 |
commit | 731f79d6b84869ec0b37f04486d6902c0628d503 (patch) | |
tree | 88b89df715b8d8ef114260d7f3817cc3e68d96dc /x11/kdelibs4 | |
parent | e78a70cbe8788f47f7808ea383efff569674dbaf (diff) | |
download | freebsd-ports-gnome-731f79d6b84869ec0b37f04486d6902c0628d503.tar.gz freebsd-ports-gnome-731f79d6b84869ec0b37f04486d6902c0628d503.tar.zst freebsd-ports-gnome-731f79d6b84869ec0b37f04486d6902c0628d503.zip |
Fix build with clang.
Import my commits d1fe207 and 01b0c1a to kdelibs upstream which should fix the
build issues reported in http://article.gmane.org/gmane.comp.kde.freebsd/20432
and http://article.gmane.org/gmane.comp.kde.freebsd/20462.
There is no need for a bump in PORTREVISION, as it only fixes the build for
people who were unable to build it before anyway.
Approved by: avilla (mentor, implicit)
Diffstat (limited to 'x11/kdelibs4')
-rw-r--r-- | x11/kdelibs4/files/patch-kjs__lookup.h | 21 | ||||
-rw-r--r-- | x11/kdelibs4/files/patch-kjs__wtf__RefPtr.h | 23 |
2 files changed, 44 insertions, 0 deletions
diff --git a/x11/kdelibs4/files/patch-kjs__lookup.h b/x11/kdelibs4/files/patch-kjs__lookup.h new file mode 100644 index 000000000000..900d4c33b35e --- /dev/null +++ b/x11/kdelibs4/files/patch-kjs__lookup.h @@ -0,0 +1,21 @@ +commit d1fe2074b4fbc8253a4533a7e6be24b4f5b20b8b +Author: Raphael Kubo da Costa <rakuco@FreeBSD.org> +Date: Fri Dec 30 23:25:16 2011 -0200 + + Add missing include. + + Casting from KJS::JSGlobalObject* to KJS::JSObject* failed with clang + because it missed the definition of JSGlobalObject. + +diff --git a/kjs/lookup.h b/kjs/lookup.h +index 6fabc8f..00622d0 100644 +--- ./kjs/lookup.h ++++ ./kjs/lookup.h +@@ -23,6 +23,7 @@ + #ifndef _KJSLOOKUP_H_ + #define _KJSLOOKUP_H_ + ++#include "JSVariableObject.h" + #include "interpreter.h" + #include "identifier.h" + #include "object.h" diff --git a/x11/kdelibs4/files/patch-kjs__wtf__RefPtr.h b/x11/kdelibs4/files/patch-kjs__wtf__RefPtr.h new file mode 100644 index 000000000000..bf54d3f120f8 --- /dev/null +++ b/x11/kdelibs4/files/patch-kjs__wtf__RefPtr.h @@ -0,0 +1,23 @@ +commit 01b0c1a8051f372e400d213ac125311c398e4b17 +Author: Raphael Kubo da Costa <rakuco@FreeBSD.org> +Date: Fri Dec 30 23:27:31 2011 -0200 + + Add missing include. + + RefPtr::release() needs PassRefPtr.h for adoptRef(). The include is also + present in WebKit's wtf. + + This should fix another build failure with clang. + +diff --git a/kjs/wtf/RefPtr.h b/kjs/wtf/RefPtr.h +index c16397e..493ab05 100644 +--- ./kjs/wtf/RefPtr.h ++++ ./kjs/wtf/RefPtr.h +@@ -24,6 +24,7 @@ + + #include <algorithm> + #include "AlwaysInline.h" ++#include "PassRefPtr.h" + + namespace WTF { + |