From 0d1fa72073a835753cb90ea60f5fc3ab68c456d2 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Mon, 9 Feb 2015 08:06:35 +0100 Subject: [PATCH] src/coap_io.c: fix definition of struct in*_pktinfo On some systems we must the struct in_pktinfo and in6_pktinfo defining by ourself. But on POSIX systems the definition is made by the header netinet/in.h, so check if there is a flag HAVE_NETINET_IN_H been set and skip the self made definition. --- src/coap_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_io.c b/src/coap_io.c index 3a0e8201..8f1328a1 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -199,7 +199,7 @@ coap_free_endpoint(coap_endpoint_t *ep) { #ifndef CUSTOM_COAP_NETWORK_SEND -#ifdef WITH_POSIX +#if defined(WITH_POSIX) != defined(HAVE_NETINET_IN_H) /* define struct in6_pktinfo and struct in_pktinfo if not available FIXME: check with configure */