Atmel Start (ASF4) LWIP socket example redefines 'struct timeval'

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

It seems that lwIP is not configured correctly when using Atmel Start to generate an lwip project with sockets enabled. The lib redefines a 'struct timeval' (in sockets.h) but it is already defined in the arm-none-eabi toolchain (in the file '_timeval.h').

One workaround I found is to define LWIP_TIMEVAL_PRIVATE to 0 in a config file.

 

Is there a better workaround?

AloyseTech