summaryrefslogtreecommitdiff
path: root/devel/pkg-config/patches
diff options
context:
space:
mode:
authorhauke <hauke>2010-12-10 07:45:56 +0000
committerhauke <hauke>2010-12-10 07:45:56 +0000
commitbacc02385c55015f9c27535b60cb8075b870077c (patch)
tree7af91984c2afd189eb47d452b1bed1001bc864ce /devel/pkg-config/patches
parentb1cb1941db4d6539e93640978c1f91bbad973cc1 (diff)
downloadpkgsrc-bacc02385c55015f9c27535b60cb8075b870077c.tar.gz
Squash a C++ism: Variable declarations only at the beginning of a block.
Found while building on NetBSD 1.5.
Diffstat (limited to 'devel/pkg-config/patches')
-rw-r--r--devel/pkg-config/patches/patch-ah19
1 files changed, 14 insertions, 5 deletions
diff --git a/devel/pkg-config/patches/patch-ah b/devel/pkg-config/patches/patch-ah
index fa80b7c2767..0c27f67538e 100644
--- a/devel/pkg-config/patches/patch-ah
+++ b/devel/pkg-config/patches/patch-ah
@@ -1,11 +1,20 @@
-$NetBSD: patch-ah,v 1.4 2010/09/23 07:07:47 adam Exp $
-
-Don't call gnome-config, it has been dead for ages and the warnings
-just confuse users.
+$NetBSD: patch-ah,v 1.5 2010/12/10 07:45:56 hauke Exp $
--- parse.c.orig 2010-05-27 20:21:36.000000000 +0000
+++ parse.c
-@@ -1460,102 +1460,8 @@ get_compat_package (const char *name)
+@@ -880,8 +880,10 @@ parse_cflags (Package *pkg, const char *
+ pkg->other_cflags = g_slist_prepend (pkg->other_cflags,
+ g_strdup (arg));
+ if (strcmp("-idirafter", arg) == 0) {
++ char *n;
++
+ tmp = trim_string(argv[++i]);
+- char *n = strdup_escape_shell(tmp);
++ n = strdup_escape_shell(tmp);
+ pkg->other_cflags = g_slist_prepend(pkg->other_cflags, n);
+ g_free(tmp);
+ }
+@@ -1460,102 +1462,8 @@ get_compat_package (const char *name)
}
else
{