summaryrefslogtreecommitdiffstats
path: root/libraries/wxGTK/newgtk.patch
blob: eb8e653c9e316549d1369a9a2c38293f1ac6f11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- wxGTK-2.8.10/src/gtk/gsockgtk.cpp	2009-03-06 09:18:08.000000000 -0300
+++ wxGTK-2.8.10_patched/src/gtk/gsockgtk.cpp	2010-03-27 08:32:57.000000000 -0300
@@ -15,8 +15,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"