BACKENDS: ENET: Fix AmigaOS build

There, msg_name is of type char *
This commit is contained in:
Le Philousophe 2023-03-07 08:40:52 +01:00
parent e51b9a7325
commit 57f3d6ebf3

View File

@ -448,7 +448,11 @@ enet_socket_send (ENetSocket socket,
sin.sin_port = ENET_HOST_TO_NET_16 (address -> port);
sin.sin_addr.s_addr = address -> host;
#ifdef AMIGAOS
msgHdr.msg_name = (char *)& sin;
#else
msgHdr.msg_name = & sin;
#endif
msgHdr.msg_namelen = sizeof (struct sockaddr_in);
}