36da56608798d57a416584754f421c9a24642e78
[feed/routing.git] / miniupnpd / patches / 101-musl-fixes.patch
1 --- a/miniupnpd.c
2 +++ b/miniupnpd.c
3 @@ -39,7 +39,7 @@
4 #include <sys/param.h>
5 #if defined(sun)
6 #include <kstat.h>
7 -#else
8 +#elif !defined(__linux__)
9 /* for BSD's sysctl */
10 #include <sys/sysctl.h>
11 #endif
12 --- a/netfilter/iptpinhole.h
13 +++ b/netfilter/iptpinhole.h
14 @@ -8,6 +8,7 @@
15 #define IPTPINHOLE_H_INCLUDED
16
17 #ifdef ENABLE_UPNPPINHOLE
18 +#include <sys/types.h>
19
20 int add_pinhole(const char * ifname,
21 const char * rem_host, unsigned short rem_port,