This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible omission in Lwip?


On Mon, Apr 10, 2006 at 05:30:39PM +0200, Birahim Larou Fall wrote:
> The problem, Mr Andrew, is that I include 
> eCos\packages\net\lwip_tcpip\current\include\lwip in my source file

That is a directory, not a file, so you cannot #include it.

It looks like you should be including 

<lwip/network.h>

> and I 
> don't want to define LWIP_TIMEVAL_PRIVATE (because I don't use TIMEVAL) so 
> IT generates an error.

This also does not look right either

lunn@londo:~/eCos/anoncvs-clean/packages/net/lwip_tcpip/current/include$ grep -n -r LWIP_TIMEVAL_PRI *
lwip/sockets.h:212:#ifndef LWIP_TIMEVAL_PRIVATE
lwip/sockets.h:213:#define LWIP_TIMEVAL_PRIVATE 1
lwip/sockets.h:216:#if LWIP_TIMEVAL_PRIVATE

212:#ifndef LWIP_TIMEVAL_PRIVATE
213:#define LWIP_TIMEVAL_PRIVATE 1
214:#endif
215:
216:#if LWIP_TIMEVAL_PRIVATE
  struct timeval {
    long    tv_sec;         /* seconds */
    long    tv_usec;        /* and microseconds */
  };
#endif

So unless you have defined LWIP_TIMEVAL_PRIVATE timeval will be
declared. However all this is inside #ifndef FD_SET so that could be
the cause of the problem.

Please provide a test case that i can compile and see the error.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]