diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2018-10-22 10:33:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-22 10:33:44 +0200 |
commit | d4275aa12f35e5c729c54d65c54ab421117b74f1 (patch) | |
tree | 3208314edec1ac439f342cbb9d477d0562e81177 /lib/curl_rtmp.c | |
parent | db1338474c699a95f824d525c210a3590c6f2554 (diff) | |
download | curl-d4275aa12f35e5c729c54d65c54ab421117b74f1.tar.gz |
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)
^
(from with clang-cl).
Since 'setsockopt()' is really 'lwip_setsockopt()' in '<LWIP_ROOT>/src/include/lwip\sockets.h', do not redefine it.
Diffstat (limited to 'lib/curl_rtmp.c')
-rw-r--r-- | lib/curl_rtmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c index 97430647b..c1699a30d 100644 --- a/lib/curl_rtmp.c +++ b/lib/curl_rtmp.c @@ -37,7 +37,7 @@ /* The last #include file should be: */ #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 SET_RCVTIMEO(tv,s) int tv = s*1000 #else |