get miniupnpc building on non-BSD systems
This commit is contained in:
parent
209fff41b5
commit
acc7330800
|
@ -18,6 +18,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32)
|
#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
|
#define HAS_IP_MREQN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -112,9 +116,10 @@ LIBSPEC void parserootdesc(const char * buffer, int bufsize, struct IGDdatas * d
|
||||||
* return values :
|
* return values :
|
||||||
* pointer - OK
|
* pointer - OK
|
||||||
* NULL - error */
|
* NULL - error */
|
||||||
char * simpleUPnPcommand2(int s, const char * url, const char * service,
|
static char *
|
||||||
const char * action, struct UPNParg * args,
|
simpleUPnPcommand2(int s, const char * url, const char * service,
|
||||||
int * bufsize, const char * httpversion)
|
const char * action, struct UPNParg * args,
|
||||||
|
int * bufsize, const char * httpversion)
|
||||||
{
|
{
|
||||||
char hostname[MAXHOSTNAMELEN+1];
|
char hostname[MAXHOSTNAMELEN+1];
|
||||||
unsigned short port = 0;
|
unsigned short port = 0;
|
||||||
|
|
Loading…
Reference in New Issue