pkgsrc/x11/wxGTK26/patches/patch-ad

22 lines
660 B
Text

$NetBSD: patch-ad,v 1.1 2009/10/23 11:16:55 plunky Exp $
avoid conflicts with GSocket in glib >= 2.21 as per
http://trac.wxwidgets.org/ticket/10883
--- src/gtk/gsockgtk.cpp.orig 2009-10-23 11:43:01.000000000 +0100
+++ src/gtk/gsockgtk.cpp 2009-10-23 11:43:04.000000000 +0100
@@ -14,8 +14,13 @@
#include <stdlib.h>
#include <stdio.h>
+// newer versions of glib define its own GSocket but we unfortunately use this
+// name in our own (semi-)public header and so can't change it -- rename glib
+// one instead
+#define GSocket GlibGSocket
#include <gdk/gdk.h>
#include <glib.h>
+#undef GSocket
#include "wx/gsocket.h"
#include "wx/unix/gsockunx.h"