2016-10-12 11:39:27 +00:00

24 lines
492 B
Plaintext

$OpenBSD: patch-gtk_c,v 1.5 2016/10/12 11:39:27 sthen Exp $
Fix 64-bit issue.
Fix with newer glib.
--- gtk.c.orig Mon Aug 1 14:07:58 2016
+++ gtk.c Wed Aug 3 14:20:06 2016
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -72,6 +73,7 @@ void gtk_do_init(int *argc, char ***argv)
static int done = 0;
if(!done) {
+ g_type_init();
gtk_init(argc, argv);
done = 1;