Skip to content

Commit

Permalink
src: android build fix
Browse files Browse the repository at this point in the history
ip_mreq_source struct are not defined in Android NDK <= 16, regardless
of the API level.

Fixes: #2633
PR-URL: #2637
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
devnexen authored and santigimeno committed Jan 26, 2020
1 parent 3ac654c commit 8270add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static int uv__udp_set_membership6(uv_udp_t* handle,
}


#if !defined(__OpenBSD__) && !defined(__NetBSD__)
#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__)
static int uv__udp_set_source_membership4(uv_udp_t* handle,
const struct sockaddr_in* multicast_addr,
const char* interface_addr,
Expand Down Expand Up @@ -842,7 +842,7 @@ int uv_udp_set_source_membership(uv_udp_t* handle,
const char* interface_addr,
const char* source_addr,
uv_membership membership) {
#if !defined(__OpenBSD__) && !defined(__NetBSD__)
#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__)
int err;
struct sockaddr_storage mcast_addr;
struct sockaddr_in* mcast_addr4;
Expand Down

0 comments on commit 8270add

Please sign in to comment.