Remove unnecessary include in header and source file. gmtime_r() is an extension to the C library, and therefore one needs to explicitly ask for its prototype to have it exposed. This is done by defining _POSIX_C_SOURCE so let's do so. These two changes fix build errors with some libCs. Tested with pico, newlib, minimal and the host glibc. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| bas | ||
| ias | ||
| nus | ||
| ots | ||
| CMakeLists.txt | ||
| cts.c | ||
| dis.c | ||
| hrs.c | ||
| Kconfig | ||
| Kconfig.cts | ||
| Kconfig.dis | ||
| Kconfig.hrs | ||
| Kconfig.tps | ||
| tps.c | ||