2013-04-01 10:08:26 -04:00
|
|
|
$OpenBSD: patch-gtk_c,v 1.3 2013/04/01 14:08:26 sthen Exp $
|
2009-03-08 14:15:45 -04:00
|
|
|
|
|
|
|
Fix 64-bit issue.
|
2013-04-01 10:08:26 -04:00
|
|
|
Fix with newer glib.
|
2009-03-08 14:15:45 -04:00
|
|
|
|
2013-04-01 10:08:26 -04:00
|
|
|
--- gtk.c.orig Mon Feb 14 08:50:59 2011
|
|
|
|
+++ gtk.c Mon Apr 1 14:50:24 2013
|
2010-08-19 12:56:45 -04:00
|
|
|
@@ -21,6 +21,7 @@
|
2009-03-08 14:15:45 -04:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
+#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
2013-04-01 10:08:26 -04:00
|
|
|
@@ -70,6 +71,7 @@ void gtk_do_init(int *argc, char ***argv)
|
|
|
|
static int done = 0;
|
|
|
|
|
|
|
|
if(!done) {
|
|
|
|
+ g_type_init();
|
|
|
|
gtk_init(argc, argv);
|
|
|
|
|
|
|
|
done = 1;
|