libcoap icon indicating copy to clipboard operation
libcoap copied to clipboard

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

Open jonasgreen88 opened this issue 9 years ago • 2 comments

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.

jonasgreen88 avatar Feb 10 '17 11:02 jonasgreen88

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

tijuca avatar Feb 10 '17 21:02 tijuca

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.

mrdeep1 avatar Jul 23 '22 15:07 mrdeep1