hi,

the update to libart 2.3.19 broke at least kdelibs3.
this diff makes libart usable again with c++.
(kdelibs3 is happy again).

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/libart/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile    24 Apr 2007 20:44:29 -0000      1.17
+++ Makefile    25 Apr 2007 10:00:40 -0000
@@ -4,7 +4,7 @@
 
 VERSION=               2.3.19
 DISTNAME=              libart_lgpl-${VERSION}
-PKGNAME=               libart-${VERSION}
+PKGNAME=               libart-${VERSION}p0
 SHARED_LIBS += art_lgpl_2           5.19     # .5.19
 CATEGORIES=            graphics
 
Index: patches/patch-art_misc_h
===================================================================
RCS file: patches/patch-art_misc_h
diff -N patches/patch-art_misc_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-art_misc_h    25 Apr 2007 10:00:40 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- art_misc.h.orig    Wed Apr 25 11:55:05 2007
++++ art_misc.h Wed Apr 25 11:55:35 2007
+@@ -34,9 +34,17 @@
+ #include <libart_lgpl/art_config.h>
+ #endif
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
++
+ void *art_alloc(size_t size);
+ void art_free(void *ptr);
+ void *art_realloc(void *ptr, size_t size);
++
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
+ 
+ /* These aren't, strictly speaking, configuration macros, but they're
+    damn handy to have around, and may be worth playing with for
-- 
``This statement is false''
NedBSD: http://nedbsd.eu

Reply via email to