From 2e42be246e0f0093f86c40dba3f95945cf13a501 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 25 May 2012 00:39:23 +0200 Subject: [PATCH] disable link_ntoa() under Solaris --- minissdpd/upnputils.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/minissdpd/upnputils.c b/minissdpd/upnputils.c index 8e253d7..ec32d29 100644 --- a/minissdpd/upnputils.c +++ b/minissdpd/upnputils.c @@ -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;