mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 02:02:54 +03:00
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:
1 parent
c7299d9c86
commit
0d1fa72073
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user