SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

problems on lwip definitions compiling dhcpserver #594

Open gpreviato opened 6 years ago

gpreviato commented 6 years ago

Hi, I had some problems compiling the dhcpserver extra: 1) Missing definitions in prot/dhcp.h that I actually solved adding a new include, with a copy of definition missing; 2) definition of macro: ip4_addr4 in lwip/lwip/src/include/lwip/ip4_addr.h: is defined as const, so the compiler refuse to compile row 208 in dhcpserver.h: ip4_addr4(&(dhcpmsg->yiaddr)) += (freelease - state->leases); I've solved with some workaround.

Kind Regards,

--gra