mirror of
https://github.com/libretro/RetroArch
synced 2025-04-25 00:02:31 +00:00
miniupnpc: fix include dir for linux, fix setsockopt warning on windows
This commit is contained in:
parent
5d8c191df7
commit
abc7da4c87
@ -1210,7 +1210,7 @@ ifeq ($(HAVE_NETWORKING), 1)
|
|||||||
ifeq ($(HAVE_MINIUPNPC), 1)
|
ifeq ($(HAVE_MINIUPNPC), 1)
|
||||||
ifeq ($(HAVE_BUILTINMINIUPNPC), 1)
|
ifeq ($(HAVE_BUILTINMINIUPNPC), 1)
|
||||||
DEFINES += -DHAVE_BUILTINMINIUPNPC -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR
|
DEFINES += -DHAVE_BUILTINMINIUPNPC -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR
|
||||||
DEFINES += -I$(DEPS_DIR)/miniupnpc
|
DEFINES += -I$(DEPS_DIR)
|
||||||
OBJ += \
|
OBJ += \
|
||||||
$(DEPS_DIR)/miniupnpc/igd_desc_parse.o \
|
$(DEPS_DIR)/miniupnpc/igd_desc_parse.o \
|
||||||
$(DEPS_DIR)/miniupnpc/upnpreplyparse.o \
|
$(DEPS_DIR)/miniupnpc/upnpreplyparse.o \
|
||||||
|
4
deps/miniupnpc/connecthostport.c
vendored
4
deps/miniupnpc/connecthostport.c
vendored
@ -197,13 +197,13 @@ int connecthostport(const char * host, unsigned short port,
|
|||||||
/* setting a 3 seconds timeout for the connect() call */
|
/* setting a 3 seconds timeout for the connect() call */
|
||||||
timeout.tv_sec = 3;
|
timeout.tv_sec = 3;
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_usec = 0;
|
||||||
if(setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(struct timeval)) < 0)
|
if(setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const char *)&timeout, sizeof(struct timeval)) < 0)
|
||||||
{
|
{
|
||||||
PRINT_SOCKET_ERROR("setsockopt");
|
PRINT_SOCKET_ERROR("setsockopt");
|
||||||
}
|
}
|
||||||
timeout.tv_sec = 3;
|
timeout.tv_sec = 3;
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_usec = 0;
|
||||||
if(setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(struct timeval)) < 0)
|
if(setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (const char *)&timeout, sizeof(struct timeval)) < 0)
|
||||||
{
|
{
|
||||||
PRINT_SOCKET_ERROR("setsockopt");
|
PRINT_SOCKET_ERROR("setsockopt");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user