diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2018-10-23 12:25:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 12:25:52 +0200 |
commit | 859c633b96901d0002062bbe4ffb41c349ffbbce (patch) | |
tree | f7d73a1f31ed0dd15da87f9e93af9ef008f2120b | |
parent | d4275aa12f35e5c729c54d65c54ab421117b74f1 (diff) | |
download | curl-lwip-patch.tar.gz |
Fix for compiling with lwIP (2)lwip-patch
Per Jay Satiros comment, adapt for the case when 'LWIP_SO_SNDRCVTIMEO_NONSTANDARD = 1'
-rw-r--r-- | lib/curl_rtmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c index c1699a30d..f09f2f332 100644 --- a/lib/curl_rtmp.c +++ b/lib/curl_rtmp.c @@ -37,9 +37,11 @@ /* The last #include file should be: */ #include "memdebug.h" -#if defined(_WIN32) && !defined(USE_LWIPSOCK) +#if defined(WIN32) && !defined(USE_LWIPSOCK) #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 +#elif defined(LWIP_SO_SNDRCVTIMEO_NONSTANDARD) +#define SET_RCVTIMEO(tv,s) int tv = s*1000 #else #define SET_RCVTIMEO(tv,s) struct timeval tv = {s,0} #endif |