Why then is the sys_now() prototype in sys.h ?  To me that would suggest
that the function belongs in sys.c
If you want the function in arch_sys.c, why isn't the prototype in
arch_sys.h ?

>From what I can tell the types required  that are missing come from
sys/time.h in Unix which does not exist in the lwIP file set.  So those
items are going to need to be added somewhere, I guess in sys_arch.h

Chris.


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "Mailing list for lwIP users" <[email protected]>
Sent: Wednesday, November 19, 2008 9:31 AM
Subject: Re: [lwip-users] lwIP and Ping


> HM2 wrote:
> > However when I rename this to sys_now() and put it in sys.c and compile,
I
> > get the following:
> >
> > [...many warnings generated by missing include...]
> Of course there are warnings! Don't you know the 11th commandement:
> "Thogh shalt not modify the lwIP core code unless you know what you are
> doing."? The function sys_now() belongs, like Kieran already said, into
> sys_arch.c. Don't modify sys.c, it's fine as it is.
>
> I think sys_now() is supposed to return the elapsed miliseconds since
> lwIP was started.
>
> Simon
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to