openbsd-ports/net/mtr/patches/patch-gtk_c

24 lines
492 B
Plaintext
Raw Normal View History

$OpenBSD: patch-gtk_c,v 1.3 2013/04/01 14:08:26 sthen Exp $
Fix 64-bit issue.
Fix with newer glib.
--- gtk.c.orig Mon Feb 14 08:50:59 2011
+++ gtk.c Mon Apr 1 14:50:24 2013
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -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;