This is the mail archive of the ecos-patches@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: [ECOS] ecos and gettimeofday()


On Sun, Oct 23, 2005 at 11:44:21PM +0200, Alexander Neundorf wrote:
> On Sunday 23 October 2005 23:08, Andrew Lunn wrote:
> > OK. It took a while, but here it is. It took a while to fix all the
> 
> Very nice, I'll have a look :-)
> 
> ...
> > package being disabled. And some bits of code wrongly assume <time.h>
> > defines timeval when in fact <sys/time.h> does.
> 
> How could this lead to problems ? 
> isoinfra/time.h includes isoinfra/sys/time unconditionally, and sys/time.h 
> defines timeval itself if POSIX_CLOCKS is not defined. 

No it doesn't. The POSIX standard does not say anything about <time.h>
including <sys/time.h>. I also checked linux's <time.h> and that also
does not include <sys/time.h> or <bits/time.h>.

        Andrew


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