libraries/gtk-sharp: Fixed to build against gcc-4.7.x

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Binh Nguyen 2012-08-23 15:13:34 +07:00 committed by Robby Workman
parent 21fd587660
commit bc91b326ab
3 changed files with 42 additions and 2 deletions

View file

@ -3,5 +3,3 @@ gtk-sharp ( GUI toolkit for mono )
Gtk# is a Graphical User Interface Toolkit for mono and .Net. The project
binds the gtk+ toolkit and assorted GNOME libraries, enabling fully native
graphical application development using Mono and .Net development frameworks.
This requires mono.

View file

@ -0,0 +1,39 @@
diff --git a/glib/glue/list.c b/glib/glue/list.c
index dd3f0de..377df76 100644
--- a/glib/glue/list.c
+++ b/glib/glue/list.c
@@ -20,7 +20,7 @@
*/
-#include <glib/glist.h>
+#include <glib.h>
/* Forward declarations */
gpointer gtksharp_list_get_data (GList *l);
diff --git a/glib/glue/slist.c b/glib/glue/slist.c
index 80f5f17..ddd447c 100644
--- a/glib/glue/slist.c
+++ b/glib/glue/slist.c
@@ -20,7 +20,7 @@
*/
-#include <glib/gslist.h>
+#include <glib.h>
/* Forward declarations */
gpointer gtksharp_slist_get_data (GSList *l);
diff --git a/glib/glue/thread.c b/glib/glue/thread.c
index 4fcf8c6..3655cfc 100644
--- a/glib/glue/thread.c
+++ b/glib/glue/thread.c
@@ -20,7 +20,7 @@
*/
-#include <glib/gthread.h>
+#include <glib.h>
gboolean glibsharp_g_thread_supported (void);

View file

@ -52,6 +52,9 @@ find . \
-exec chmod 644 {} \;
chmod 644 HACKING
# Fix building against gcc-4.7.x
patch -p1 < $CWD/gtk-sharp-2.12.10-gcc47.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \