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:
Charles Kerr 2007-12-08 23:11:10 +00:00
parent 55dae577ef
commit d4cf34c0c1
1 changed files with 2 additions and 2 deletions

View File

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