This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Time_t
- From: Andrew Lunn <andrew at lunn dot ch>
- To: "Devaughn, Hans" <hans dot devaughn at siemens dot com>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 20 Aug 2004 16:40:46 +0200
- Subject: Re: [ECOS] Time_t
- References: <EA78B62757AF1E4799828249310AC4CA060A44E2@stca206a.bus.sc.rolm.com>
On Fri, Aug 20, 2004 at 07:03:26AM -0700, Devaughn, Hans wrote:
> I am trying to get the t_time structure defined for a POSIX environment. I
> have selected the "time_t implementation header" in the Configuration Tool
> and set the header to <cyg/posix/time.h>. The file ../install/include/time.h
> checks CYGBLD_ISO_TIME_T_HEADER to be defined, and if so, includes
> <cyg/posix/time.h>. The <cyg/posix/time.h> file has the structure timespec
> defined with a member tv_sec of type time_t. The only place time_t is
> defined is if the CYGBLD_ISO_TIME_T_HEADER is not defined (else leg of the
> baseline time.h) and in <sys/time.h>. The latter file has the reference
> time_t "#defined out" with "#if 0".
Jifl is the expert in this area, but why set CYGBLD_ISO_TIME_T_HEADER?
It does not seems to be neccassary. Leave it unset and you will get
time_t defined in <time.h>
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