disable link_ntoa() under Solaris
This commit is contained in:
parent
91319b1f7b
commit
2e42be246e
|
@ -1,4 +1,4 @@
|
|||
/* $Id: upnputils.c,v 1.4 2012/02/06 16:21:24 nanard Exp $ */
|
||||
/* $Id: upnputils.c,v 1.5 2012/05/24 16:51:09 nanard Exp $ */
|
||||
/* MiniUPnP project
|
||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
* (c) 2006-2012 Thomas Bernard
|
||||
|
@ -44,6 +44,11 @@ sockaddr_to_string(const struct sockaddr * addr, char * str, size_t size)
|
|||
n = snprintf(str, size, "%s:%hu", buffer, port);
|
||||
break;
|
||||
#ifdef AF_LINK
|
||||
#if defined(__sun)
|
||||
/* solaris does not seem to have link_ntoa */
|
||||
/* #define link_ntoa _link_ntoa */
|
||||
#define link_ntoa(x) "dummy-link_ntoa"
|
||||
#endif
|
||||
case AF_LINK:
|
||||
{
|
||||
struct sockaddr_dl * sdl = (struct sockaddr_dl *)addr;
|
||||
|
|
Loading…
Reference in New Issue