mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 00:58:48 -05:00
rtmp: fix for compiling with lwIP
Compiling on _WIN32 and with USE_LWIPSOCK, causes this error: curl_rtmp.c(223,3): error: use of undeclared identifier 'setsockopt' setsockopt(r->m_sb.sb_socket, SOL_SOCKET, SO_RCVTIMEO, ^ curl_rtmp.c(41,32): note: expanded from macro 'setsockopt' #define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e) ^ Closes #3155
This commit is contained in:
parent
25d287d1e5
commit
639d052e44
@ -37,9 +37,11 @@
|
|||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(WIN32) && !defined(USE_LWIPSOCK)
|
||||||
#define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e)
|
#define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e)
|
||||||
#define SET_RCVTIMEO(tv,s) int tv = s*1000
|
#define SET_RCVTIMEO(tv,s) int tv = s*1000
|
||||||
|
#elif defined(LWIP_SO_SNDRCVTIMEO_NONSTANDARD)
|
||||||
|
#define SET_RCVTIMEO(tv,s) int tv = s*1000
|
||||||
#else
|
#else
|
||||||
#define SET_RCVTIMEO(tv,s) struct timeval tv = {s,0}
|
#define SET_RCVTIMEO(tv,s) struct timeval tv = {s,0}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user