Forums

Xilinx struct timeval redefined

Started by Unknown November 30, 2007
I am trying to write code for the Xilinx Kernel provided for a Xilinx
FPGA.  I am attempting to write a ping utility for said platform.  In
trying to use "lwip/sockets.h" I receive a message from the compiler
telling me that I am redefining struct timeval in the sockets.h file.
I took a look at the automatically generated sockets.h file and the
timeval structure is indeed created and probably redefined.  I can get
around this problem by doing a #define LWIP_TIMEVAL_PRIVATE 0 before
the header include.  I am just wondering if there is a compiler option
that I should be using or something that I am missing.  My solution
seems a bit hacky and unlikely to be the correct way of doing things.
Any help would be appreciated.  Thanks.

Greg