This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: [ECOS] ecos and gettimeofday()
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Alexander Neundorf <neundorf at kde dot org>
- Cc: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Mon, 24 Oct 2005 00:02:24 +0200
- Subject: Re: [ECOS] ecos and gettimeofday()
- References: <200509292331.26058.neundorf@kde.org> <200510122012.02095.neundorf@kde.org> <20051023210844.GD4266@lunn.ch> <200510232344.21923.neundorf@kde.org>
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