fix build after the mono update
This commit is contained in:
parent
9ac57ed326
commit
bb71fa6224
@ -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
|
||||
|
30
x11/kde4/qyoto/patches/patch-qdbus_QDBusReply_cs
Normal file
30
x11/kde4/qyoto/patches/patch-qdbus_QDBusReply_cs
Normal 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()) {
|
Loading…
x
Reference in New Issue
Block a user