net-misc/tinc: fix USE=upnp build err
authorYixun Lan <dlan@gentoo.org>
Wed, 12 Oct 2016 10:01:31 +0000 (18:01 +0800)
committerYixun Lan <dlan@gentoo.org>
Wed, 12 Oct 2016 10:04:52 +0000 (18:04 +0800)
Gentoo-Bug: 595372

Package-Manager: portage-2.3.2

net-misc/tinc/files/tinc-1.1_pre14-upnp.patch [new file with mode: 0644]
net-misc/tinc/tinc-1.1_pre14.ebuild

diff --git a/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch b/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch
new file mode 100644 (file)
index 0000000..1d037ef
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/src/upnp.c b/src/upnp.c
+index abd2f92..3bfc770 100644
+--- a/src/upnp.c
++++ b/src/upnp.c
+@@ -57,7 +57,7 @@ static struct UPNPDev *upnp_discover(int delay, int *error) {
+ #elif MINIUPNPC_API_VERSION <= 14
+-      return upnpDiscover(delay, NULL NULL, false, false, 2, error);
++      return upnpDiscover(delay, NULL, NULL, false, false, 2, error);
+ #else
index 96313dca9b1634ab99371a2ab599e7a98899a38b..3a9eb67ae2915dbdf07ff812547dacf96abf116d 100644 (file)
@@ -38,6 +38,10 @@ RDEPEND="${DEPEND}
 
 S="${WORKDIR}/${MY_P}"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-upnp.patch
+}
+
 src_configure() {
        econf \
                --enable-jumbograms \