fix build after the mono update

This commit is contained in:
robert 2014-12-31 09:59:17 +00:00
parent 9ac57ed326
commit bb71fa6224
2 changed files with 33 additions and 1 deletions

View File

@ -1,9 +1,11 @@
# $OpenBSD: Makefile,v 1.8 2014/07/18 08:17:13 zhuk Exp $
# $OpenBSD: Makefile,v 1.9 2014/12/31 09:59:17 robert Exp $
CATEGORIES = devel
COMMENT = Qt4 bindings for .NET/Mono
DISTNAME = qyoto-${MODKDE4_VERSION}
REVISION = 0
SHARED_LIBS = qyoto 50.1 # 2.0
SHARED_LIBS += phonon-sharp 50.1
SHARED_LIBS += qscintilla-sharp 50.1

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-qdbus_QDBusReply_cs,v 1.1 2014/12/31 09:59:17 robert Exp $
https://bugs.kde.org/show_bug.cgi?id=339977
--- qdbus/QDBusReply.cs.orig Sat Jun 1 23:29:59 2013
+++ qdbus/QDBusReply.cs Wed Dec 31 10:56:42 2014
@@ -4,9 +4,12 @@ namespace Qyoto {
using System.Runtime.InteropServices;
using System.Collections.Generic;
- public class QDBusReply<T> {
+ class QDBusReplyFill {
[DllImport("qyoto", CharSet=CharSet.Ansi)]
- private static extern void qyoto_qdbus_reply_fill(IntPtr msg, IntPtr error, IntPtr variant);
+ public static extern void qyoto_qdbus_reply_fill(IntPtr msg, IntPtr error, IntPtr variant);
+ }
+
+ public class QDBusReply<T> {
public QDBusReply(QDBusMessage reply) {
m_error = new QDBusError(reply);
@@ -18,7 +21,7 @@ namespace Qyoto {
variant = QVariant.FromValue<T>(default(T));
}
- qyoto_qdbus_reply_fill((IntPtr) GCHandle.Alloc(reply), (IntPtr) GCHandle.Alloc(m_error),
+ QDBusReplyFill.qyoto_qdbus_reply_fill((IntPtr) GCHandle.Alloc(reply), (IntPtr) GCHandle.Alloc(m_error),
(IntPtr) GCHandle.Alloc(variant));
if (!m_error.IsValid()) {