obgm / libcoap

A CoAP (RFC 7252) implementation in C
Other
793 stars 423 forks source link

Indirect inclusion of sys/types.h in lwippools.h causes conflicting types #63

Open jonasgreen88 opened 7 years ago

jonasgreen88 commented 7 years ago

This issue is valid if lwIP's socket interface is enabled (LWIP_SOCKET).

The files included by lwippools.h eventually includes the sys/types.h header file. In this header file some socket related definitions are defined, e.g. "fd_set". The same definitions are defined by lwIP's socket interface in sockets.h. This causes conflicted types error when compiling.

tijuca commented 7 years ago

Can you explain then sys/types.h is gone included?

mrdeep1 commented 2 years ago

libcoap LwIP support has been re-written in PR https://github.com/obgm/libcoap/pull/884, and so this should no longer be an issue.