mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows
This avoids warnings. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -252,7 +252,8 @@ const char *ff_gai_strerror(int ecode)
|
||||
int ff_socket_nonblock(int socket, int enable)
|
||||
{
|
||||
#if HAVE_WINSOCK2_H
|
||||
return ioctlsocket(socket, FIONBIO, &enable);
|
||||
u_long param = enable;
|
||||
return ioctlsocket(socket, FIONBIO, ¶m);
|
||||
#else
|
||||
if (enable)
|
||||
return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) | O_NONBLOCK);
|
||||
|
||||
Reference in New Issue
Block a user