mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
(netplay.c) Add ANDROID ifdef
This commit is contained in:
parent
5f5efc03a7
commit
e8e3d1427a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user