mirror of
https://github.com/curl/curl.git
synced 2026-08-11 09:50:55 +03:00
BSD-style lwIP TCP/IP stack support - followup
This commit is contained in:
parent
40597fd942
commit
f6272dd9b8
4 changed files with 19 additions and 7 deletions
|
|
@ -407,7 +407,7 @@
|
|||
/* BSD-style lwIP TCP/IP stack SPECIFIC */
|
||||
/* ---------------------------------------------------------------- */
|
||||
|
||||
/* Define this to use BSD-style lwIP TCP/IP stack */
|
||||
/* Define this to use BSD-style lwIP TCP/IP stack */
|
||||
/* #define USE_LWIPSOCK 1 */
|
||||
|
||||
#ifdef USE_LWIPSOCK
|
||||
|
|
|
|||
|
|
@ -792,7 +792,7 @@ static void nosigpipe(struct connectdata *conn,
|
|||
#define nosigpipe(x,y)
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef USE_WINSOCK
|
||||
/* When you run a program that uses the Windows Sockets API, you may
|
||||
experience slow performance when you copy data to a TCP server.
|
||||
|
||||
|
|
|
|||
|
|
@ -490,5 +490,21 @@ typedef int sig_atomic_t;
|
|||
|
||||
#define ZERO_NULL 0
|
||||
|
||||
|
||||
/*
|
||||
* Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
|
||||
*/
|
||||
|
||||
#if defined(__LWIP_OPT_H__)
|
||||
# if defined(SOCKET) || \
|
||||
defined(USE_WINSOCK) || \
|
||||
defined(HAVE_ERRNO_H) || \
|
||||
defined(HAVE_WINSOCK_H) || \
|
||||
defined(HAVE_WINSOCK2_H) || \
|
||||
defined(HAVE_WS2TCPIP_H)
|
||||
# error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* __SETUP_ONCE_H */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue