Merge pull request #45 from karlhiramoto/master
fix cross-compile: some libc implementations don't define struct ip_mreqn
This commit is contained in:
commit
bdb028eea5
|
@ -71,6 +71,17 @@
|
||||||
#define TIMEVAL struct timeval
|
#define TIMEVAL struct timeval
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(HAS_IP_MREQN) && defined(NEED_STRUCT_IP_MREQN)
|
||||||
|
/* Several versions of glibc don't define this structure, define it here and compile with CFLAGS NEED_STRUCT_IP_MREQN */
|
||||||
|
struct ip_mreqn
|
||||||
|
{
|
||||||
|
struct in_addr imr_multiaddr; /* IP multicast address of group */
|
||||||
|
struct in_addr imr_address; /* local IP address of interface */
|
||||||
|
int imr_ifindex; /* Interface index */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "miniupnpc.h"
|
#include "miniupnpc.h"
|
||||||
#include "minissdpc.h"
|
#include "minissdpc.h"
|
||||||
#include "miniwget.h"
|
#include "miniwget.h"
|
||||||
|
|
Loading…
Reference in New Issue