From 9ac7f3588dda7d175e04878e7b871a88306d13bf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 25 Jun 2015 01:03:23 +0200 Subject: Don't depend on net/if_ether.h Instead of adding compatiblity code to make this work with musl, just duplicate the needed definitions in fastd. --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/log.c') diff --git a/src/log.c b/src/log.c index 7b68f48..bd38821 100644 --- a/src/log.c +++ b/src/log.c @@ -74,7 +74,7 @@ size_t fastd_snprint_peer_address(char *buffer, size_t size, const fastd_peer_ad if (!bind_address && hide) return snprintf_safe(buffer, size, "[hidden]:%u", ntohs(address->in6.sin6_port)); if (inet_ntop(AF_INET6, &address->in6.sin6_addr, addr_buf, sizeof(addr_buf))) { - char ifname_buf[IF_NAMESIZE]; + char ifname_buf[IFNAMSIZ]; if (!iface && IN6_IS_ADDR_LINKLOCAL(&address->in6.sin6_addr)) iface = if_indextoname(address->in6.sin6_scope_id, ifname_buf); -- cgit v1.2.3