net-misc/tinc: fix USE=upnp build err

Gentoo-Bug: 595372

Package-Manager: portage-2.3.2
This commit is contained in:
Yixun Lan
2016-10-12 18:01:31 +08:00
parent 6041ca89f3
commit 2d5cfa6486
2 changed files with 17 additions and 0 deletions

View File

@@ -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

View File

@@ -38,6 +38,10 @@ RDEPEND="${DEPEND}
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${P}-upnp.patch
}
src_configure() {
econf \
--enable-jumbograms \