mirror of
https://github.com/transmission/transmission
synced 2025-03-03 18:25:35 +00:00
until the next release of libnatpmp, use Chinstraip's patch from http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=417
This commit is contained in:
parent
55dae577ef
commit
d4cf34c0c1
1 changed files with 2 additions and 2 deletions
4
third-party/libnatpmp/getgateway.c
vendored
4
third-party/libnatpmp/getgateway.c
vendored
|
@ -17,7 +17,7 @@
|
|||
#include <ctype.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/param.h>
|
||||
#ifdef BSD
|
||||
#if defined(BSD) || defined(__APPLE__)
|
||||
#include <stdlib.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -60,7 +60,7 @@ int getdefaultgateway(in_addr_t * addr)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef BSD
|
||||
#if defined(BSD) || defined(__APPLE__)
|
||||
|
||||
#define ROUNDUP(a) \
|
||||
((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
|
||||
|
|
Loading…
Reference in a new issue