(netplay.c) Add ANDROID ifdef

This commit is contained in:
twinaphex 2015-09-15 05:48:05 +02:00
parent 5f5efc03a7
commit e8e3d1427a

View File

@ -166,7 +166,13 @@ static bool send_chunk(netplay_t *netplay)
{
if (sendto(netplay->udp_fd, (const char*)netplay->packet_buffer,
sizeof(netplay->packet_buffer), 0, addr,
sizeof(struct sockaddr_in6)) != sizeof(netplay->packet_buffer))
#ifdef ANDROID
sizeof(struct sockaddr_in6)
#else
sizeof(struct sockaddr_in)
#endif
)
!= sizeof(netplay->packet_buffer))
{
warn_hangup();
netplay->has_connection = false;