]> granicus.if.org Git - curl/commit
lwip: Fix compatibility issues with later versions
authorGisle Vanem <gvanem@yahoo.no>
Mon, 7 Dec 2015 19:27:29 +0000 (14:27 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 7 Dec 2015 19:27:55 +0000 (14:27 -0500)
commite1b6b2219d2e5b44c50b9809a19321ee0d0c77db
treeec78e53e1c801f1f34d85ecebb74a25f7600f35b
parentec26399bf9c2b3dc6c68eb847530bfd669598e47
lwip: Fix compatibility issues with later versions

The name of the header guard in lwIP's <lwip/opt.h> has changed from
'__LWIP_OPT_H__' to 'LWIP_HDR_OPT_H' (bug #35874 in May 2015).

Other fixes:

- In curl_setup.h, the problem with an old PSDK doesn't apply if lwIP is
used.

- In memdebug.h, the 'socket' should be undefined first due to lwIP's
lwip_socket() macro.

- In curl_addrinfo.c lwIP's getaddrinfo() + freeaddrinfo() macros need
special handling because they were undef'ed in memdebug.h.

- In select.c we can't use preprocessor conditionals inside select if
MSVC and select is a macro, as it is with lwIP.

http://curl.haxx.se/mail/lib-2015-12/0023.html
http://curl.haxx.se/mail/lib-2015-12/0024.html
include/curl/curl.h
lib/curl_addrinfo.c
lib/curl_setup.h
lib/memdebug.h
lib/select.c