Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
tizenrt: Skip IPv6 code if feature disabled (#118)
Browse files Browse the repository at this point in the history
Observed issue while building IoT.js (master)
on TizenRT (master) with artik055s/nettest config:

    arm-none-eabi-ld (...) \
    -o ".../build/output/bin/tinyara" (...) \
    .../build/output/bin/tinyara.map \
    .../build/output/libraries/libtuv.a(udp.c.obj): \
    In function `uv__udp_maybe_deferred_bind': \
    TizenRT/external/iotjs/deps/libtuv/src/unix/udp.c:445: \
    undefined reference to `in6addr_any'

Note TizenRT's artik055s/nettest image hasn't CONFIG_NET_IPv6 defined,
while artik053 has it, both should be aligned.

Bug: #118
libtuv-DCO-1.0-Signed-off-by: Philippe Coval [email protected]
  • Loading branch information
rzr authored and yichoi committed Jul 17, 2018
1 parent a813617 commit c22e8bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ static int uv__udp_maybe_deferred_bind(uv_udp_t* handle,
addrlen = sizeof *addr;
break;
}
#if !defined(__TIZENRT__) || defined(CONFIG_NET_IPv6)
case AF_INET6:
{
struct sockaddr_in6* addr = (void*)&taddr;
Expand All @@ -446,6 +447,7 @@ static int uv__udp_maybe_deferred_bind(uv_udp_t* handle,
addrlen = sizeof *addr;
break;
}
#endif
default:
assert(0 && "unsupported address family");
abort();
Expand Down

0 comments on commit c22e8bf

Please sign in to comment.