diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2023-02-22 16:46:07 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-03-08 14:58:32 -0600 |
commit | cd9d9e7b40c5aed4744dc4f9e0e287d06e9efdd2 (patch) | |
tree | a2703abf59efd9754b1bc66c2c04eaa1d82a81cd | |
parent | rtemslwip/xil_shims: Improve error messages (diff) | |
download | rtems-lwip-cd9d9e7b40c5aed4744dc4f9e0e287d06e9efdd2.tar.bz2 |
lwip/sockets.h: Avoid duplication of system struct
Excise another portion of lwIP's headers that redefine structures
available from toolchain headers.
-rw-r--r-- | lwip/src/include/lwip/sockets.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lwip/src/include/lwip/sockets.h b/lwip/src/include/lwip/sockets.h index 705ae46..3f7ee32 100644 --- a/lwip/src/include/lwip/sockets.h +++ b/lwip/src/include/lwip/sockets.h @@ -85,6 +85,7 @@ typedef u16_t in_port_t; #ifdef __rtems__ #include <netinet/in.h> +#include <net/if.h> #define SIN_ZERO_LEN 8 #else #if LWIP_IPV4 @@ -201,14 +202,12 @@ will need to increase long long */ #define CMSG_LEN(length) (ALIGN_D(sizeof(struct cmsghdr)) + \ length) -#endif /* __rtems__ */ /* Set socket options argument */ #define IFNAMSIZ NETIF_NAMESIZE struct ifreq { char ifr_name[IFNAMSIZ]; /* Interface name */ }; -#ifndef __rtems__ /* Socket protocol types (TCP/UDP/RAW) */ #define SOCK_STREAM 1 #define SOCK_DGRAM 2 |