public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Time_t
@ 2004-08-20 14:03 Devaughn, Hans
  2004-08-20 14:40 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Devaughn, Hans @ 2004-08-20 14:03 UTC (permalink / raw)
  To: 'ecos-discuss@sources.redhat.com'

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".

This result in a compile error when trying to build the library. Does anyone
have a solution for my problem?

Thanks
Hans


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Time_t
  2004-08-20 14:03 [ECOS] Time_t Devaughn, Hans
@ 2004-08-20 14:40 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2004-08-20 14:40 UTC (permalink / raw)
  To: Devaughn, Hans; +Cc: 'ecos-discuss@sources.redhat.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-20 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-20 14:03 [ECOS] Time_t Devaughn, Hans
2004-08-20 14:40 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).