diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-11-02 22:51:33 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-11-02 22:51:33 +0000 |
commit | 6263c9cb0b433bf50b8d4b5e5756513ab679a0e9 (patch) | |
tree | 6f6b8adf66e297a6922254997f1bc8fbf011f32b /misc/gok/patches | |
parent | 1e6a0d86644ed8ad9dd2865ec1e75e75fab77ded (diff) | |
download | pkgsrc-6263c9cb0b433bf50b8d4b5e5756513ab679a0e9.tar.gz |
Remove some useless C99isms to fix the build under NetBSD 1.6.2.
Should fix bug PR/27188 and problem shown in kristerw@'s bulk build.
Diffstat (limited to 'misc/gok/patches')
-rw-r--r-- | misc/gok/patches/patch-aa | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/gok/patches/patch-aa b/misc/gok/patches/patch-aa new file mode 100644 index 00000000000..253ea4b06ac --- /dev/null +++ b/misc/gok/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.1 2004/11/02 22:51:33 jmmv Exp $ + +--- gok/main.c.orig 2004-10-13 15:36:18.000000000 +0200 ++++ gok/main.c +@@ -608,8 +608,8 @@ gok_main_open(gint argc, gchar *argv[]) + + fprintf (stderr, "\nGOK Actions:\n"); + if (error == NULL) { +- list = g_slist_sort (list, (GCompareFunc)comparebasenames); +- GSList* listhead = list; ++ GSList* listhead; ++ listhead = list = g_slist_sort (list, (GCompareFunc)comparebasenames); + while (list) { + fprintf(stderr,"%s\n",g_path_get_basename(list->data)); + g_free(list->data); +@@ -636,8 +636,8 @@ gok_main_open(gint argc, gchar *argv[]) + fprintf (stderr, "\nGOK Access Methods:\n"); + if (error == NULL) { + gchar* base; +- list = g_slist_sort (list, (GCompareFunc)comparebasenames); +- GSList* listhead = list; ++ GSList* listhead; ++ listhead = list = g_slist_sort (list, (GCompareFunc)comparebasenames); + while (list) { + base = g_path_get_basename(list->data); + fprintf(stderr,"%s\n",base); |