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.
This commit is contained in:
Carsten Schoenert authored and Olaf Bergmann committed 2015-03-03 19:21:43 +01:00
1 parent c7299d9c86
commit 0d1fa72073
1 file changed
+1 -1
+1 -1
View File
@@ -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
*/