a688446f98
internals not available with asr. This also unbreaks some use with the gtk version (there are still problems but "mtr somehost" from the command line now works with gtk). ok brad@ naddy@
24 lines
492 B
Plaintext
24 lines
492 B
Plaintext
$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;
|