Adding #define LWIP_TIMEVAL_PRIVATE 0 to lwipopts.h fixes this, but it feels like...
lwip and HAL_USE_RTC both define struct timeval