From 43c6a550b24bb5a5acd905882081f9aeee48b128 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 23 Oct 2002 20:00:21 +0000 Subject: [PATCH] Added #undefs for htonl and friends to keep compiler from issuing "doubly defined" warnings --- src/arch/unix/netif/sio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/arch/unix/netif/sio.c b/src/arch/unix/netif/sio.c index 8ea13c64..e9fb2c48 100644 --- a/src/arch/unix/netif/sio.c +++ b/src/arch/unix/netif/sio.c @@ -5,6 +5,18 @@ #include "lwip/sys.h" #include "lwip/arch.h" +/* Following #undefs are here to keep compiler from issuing warnings + about them being double defined. (They are defined in lwip/inet.h + as well as the Unix #includes below.) */ +#undef htonl +#undef ntohl +#undef htons +#undef ntohs +#undef HTONL +#undef NTOHL +#undef HTONS +#undef NTOHS + #include #include #include