aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-10 13:23:46 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-10 13:23:46 -0700
commit268111c69545a7787f5eca4cec6902b7d3f8fc23 (patch)
tree72890032931f29720ed2fbac8d8b7299ba5f1aa4
parentf1e99f240afcba27c39cb7b500f588af56796199 (diff)
downloadlwip-268111c69545a7787f5eca4cec6902b7d3f8fc23.tar.gz
lwip-268111c69545a7787f5eca4cec6902b7d3f8fc23.tar.xz
lwip-268111c69545a7787f5eca4cec6902b7d3f8fc23.zip
lwip: fix conflict with <netinet/in.h>
Fix a conflict with <netinet/in.h>. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/lwip/src/include/ipv4/lwip/inet.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/lwip/src/include/ipv4/lwip/inet.h b/core/lwip/src/include/ipv4/lwip/inet.h
index 6f30d0d1..7e801308 100644
--- a/core/lwip/src/include/ipv4/lwip/inet.h
+++ b/core/lwip/src/include/ipv4/lwip/inet.h
@@ -39,9 +39,7 @@ extern "C" {
#endif
/* For compatibility with BSD code */
-struct in_addr {
- u32_t s_addr;
-};
+#include <netinet/in.h>
#define INADDR_NONE ((u32_t)0xffffffffUL) /* 255.255.255.255 */
#define INADDR_LOOPBACK ((u32_t)0x7f000001UL) /* 127.0.0.1 */