mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-29 14:05:48 +03:00
If we correctly determine the presence of the sys/time.h and time.h files using the HAVE_TIME_H and HAVE_SYS_TIME_H macros, then the LWIP compilation will result in a duplicate function error. Perhaps previous versions of LWIP did not have these files, in which case everything would have worked correctly. These changes add the necessary ifdefs and keep the optimal timer function for LWIP. Adds missed #include <time.h> lines to examples and documentation. Adds the detection of the sys/select.h header to the CMake and autoconf.