zerotier: fix linking to libnatpmp and build with uclibc
authorDENG Qingfang <redacted>
Thu, 8 Aug 2019 09:05:25 +0000 (17:05 +0800)
committerDENG Qingfang <redacted>
Thu, 8 Aug 2019 09:05:25 +0000 (17:05 +0800)
commit178096c9e4555bc41a691ea6742fed8e19cda3f0
tree9db8b58ec29d795d2f28d8ff5b09d1d4878546fd
parent3ee32eb9bccaa5705fec2a576911ac7f676aaea5
zerotier: fix linking to libnatpmp and build with uclibc

Makefile always checks the existence of host's NAT-PMP header,
which results in internal NAT-PMP code being used if it's missing.

Add a patch to make it check targets' header instead.

Use aligned_alloc() instead of valloc() in case of uclibc.

Signed-off-by: DENG Qingfang <redacted>
net/zerotier/Makefile
net/zerotier/patches/0005-link-natpmp.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT