opt/wxgtk/wxgtk-2.8.10-gsocket.patch
2009-10-05 19:12:39 +03:00

15 lines
380 B
Diff

--- src/gtk/gsockgtk.cpp~
+++ src/gtk/gsockgtk.cpp
@@ -16,6 +16,11 @@
#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"