summaryrefslogtreecommitdiff
path: root/chat/gg2/patches/patch-aj
diff options
context:
space:
mode:
authorkristerw <kristerw>2005-01-17 20:15:28 +0000
committerkristerw <kristerw>2005-01-17 20:15:28 +0000
commit3dea706e9f5fc0886a3d2e72f39e8f6ceb778edd (patch)
tree851ec63de602288e9ca80bd402e029e6a5f6a1b5 /chat/gg2/patches/patch-aj
parent8ca5160a106e2ac874546589d4982880a3851f32 (diff)
downloadpkgsrc-3dea706e9f5fc0886a3d2e72f39e8f6ceb778edd.tar.gz
Fix a C99ism to make this package build with gcc 2.95.
Diffstat (limited to 'chat/gg2/patches/patch-aj')
-rw-r--r--chat/gg2/patches/patch-aj30
1 files changed, 30 insertions, 0 deletions
diff --git a/chat/gg2/patches/patch-aj b/chat/gg2/patches/patch-aj
new file mode 100644
index 00000000000..d07d224909e
--- /dev/null
+++ b/chat/gg2/patches/patch-aj
@@ -0,0 +1,30 @@
+$NetBSD: patch-aj,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- contrib/gghist/gghist.c.orig Mon Jan 17 21:02:34 2005
++++ contrib/gghist/gghist.c Mon Jan 17 21:03:29 2005
+@@ -244,6 +244,8 @@
+ GtkWidget *field_s;
+ GtkWidget *base_field;
+ GtkTextBuffer *buf;
++ int fd;
++ int list[lines + 2];
+
+ gtk_init(&argc, &argv);
+
+@@ -257,7 +259,7 @@
+ #ifdef GGADU_DEBUG
+ g_print("Trying to open a file..\n");
+ #endif
+- int fd = open(argv[1], O_RDONLY);
++ fd = open(argv[1], O_RDONLY);
+
+ if (fd == -1) {
+ GtkWidget *dialog;
+@@ -279,7 +281,6 @@
+ g_print("Getting lines count..\n");
+ #endif
+ lines = lines_count(fd);
+- int list[lines + 2];
+
+
+ window = gtk_window_new(GTK_WINDOW_TOPLEVEL);