get miniupnpc building on non-BSD systems
This commit is contained in:
parent
209fff41b5
commit
acc7330800
|
@ -18,6 +18,10 @@
|
|||
#endif
|
||||
|
||||
#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32)
|
||||
/* miniupnpc's unmodified source says _BSD_SOURCE or _GNU_SOURCE is needed
|
||||
for struct ip_mreqn... since the above #if chain rules out the former,
|
||||
use the latter here */
|
||||
#define _GNU_SOURCE
|
||||
#define HAS_IP_MREQN
|
||||
#endif
|
||||
|
||||
|
@ -112,7 +116,8 @@ LIBSPEC void parserootdesc(const char * buffer, int bufsize, struct IGDdatas * d
|
|||
* return values :
|
||||
* pointer - OK
|
||||
* NULL - error */
|
||||
char * simpleUPnPcommand2(int s, const char * url, const char * service,
|
||||
static char *
|
||||
simpleUPnPcommand2(int s, const char * url, const char * service,
|
||||
const char * action, struct UPNParg * args,
|
||||
int * bufsize, const char * httpversion)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue