Skip to content

Commit

Permalink
It is now possible to build again with make IPV4=0 ICMP4=0 MCAST=0
Browse files Browse the repository at this point in the history
Fixed #288
  • Loading branch information
Daniele Lacamera committed Jun 22, 2015
1 parent c6a48cb commit e286cd6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions stack/pico_socket.c
Expand Up @@ -1179,12 +1179,16 @@ static int pico_socket_xmit_fragments(struct pico_socket *s, const void *buf, co

static void get_sock_dev(struct pico_socket *s)
{
if (0) {}
#ifdef PICO_SUPPORT_IPV6
if (is_sock_ipv6(s))
else if (is_sock_ipv6(s))
s->dev = pico_ipv6_source_dev_find(&s->remote_addr.ip6);
else
#endif
s->dev = pico_ipv4_source_dev_find(&s->remote_addr.ip4);
#ifdef PICO_SUPPORT_IPV4
else if (is_sock_ipv4(s))
s->dev = pico_ipv4_source_dev_find(&s->remote_addr.ip4);
#endif

}


Expand Down

0 comments on commit e286cd6

Please sign in to comment.