mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-28 08:37:28 +00:00
patch #9350: Sockets API: use OS's sys/socket.h instead of lwip/sock
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
6b92dd6907
commit
a41c1fcc62
@ -41,6 +41,11 @@
|
||||
#define LWIP_HDR_INET_H
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
#if LWIP_SOCKET_EXTERNAL_HEADERS
|
||||
#include LWIP_SOCKET_EXTERNAL_HEADER_INET_H
|
||||
#else /* LWIP_SOCKET_EXTERNAL_HEADERS */
|
||||
|
||||
#include "lwip/def.h"
|
||||
#include "lwip/ip_addr.h"
|
||||
#include "lwip/ip6_addr.h"
|
||||
@ -166,4 +171,6 @@ extern const struct in6_addr in6addr_any;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LWIP_SOCKET_EXTERNAL_HEADERS */
|
||||
|
||||
#endif /* LWIP_HDR_INET_H */
|
||||
|
@ -2009,6 +2009,17 @@
|
||||
#define LWIP_SOCKET_OFFSET 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* LWIP_SOCKET_EXTERNAL_HEADERS==1: Use external headers instead of sockets.h
|
||||
* and inet.h. In this case, user must provide its own headers by setting the
|
||||
* values for LWIP_SOCKET_EXTERNAL_HEADER_SOCKETS_H and
|
||||
* LWIP_SOCKET_EXTERNAL_HEADER_INET_H to appropriate include file names and the
|
||||
* whole content of the default sockets.h and inet.h is skipped.
|
||||
*/
|
||||
#if !defined LWIP_SOCKET_EXTERNAL_HEADERS || defined __DOXYGEN__
|
||||
#define LWIP_SOCKET_EXTERNAL_HEADERS 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT
|
||||
* options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set
|
||||
|
@ -41,6 +41,10 @@
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
#if LWIP_SOCKET_EXTERNAL_HEADERS
|
||||
#include LWIP_SOCKET_EXTERNAL_HEADER_SOCKETS_H
|
||||
#else /* LWIP_SOCKET_EXTERNAL_HEADERS */
|
||||
|
||||
#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */
|
||||
|
||||
#include "lwip/ip_addr.h"
|
||||
@ -685,4 +689,6 @@ int lwip_inet_pton(int af, const char *src, void *dst);
|
||||
|
||||
#endif /* LWIP_SOCKET */
|
||||
|
||||
#endif /* LWIP_SOCKET_EXTERNAL_HEADERS */
|
||||
|
||||
#endif /* LWIP_HDR_SOCKETS_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user