On Sunday 27 January 2002 11:20, Niall O Broin wrote:
> and on the SuSE 7.3 box it begins like this
>> #ifndef _SYS_TIME_H
> #define _SYS_TIME_H 1
>> #include <features.h>
>> #include <bits/types.h>
> #define __need_time_t
> #include <time.h>
the #define __need_time_t means that <time.h> skips over
pretty much everything except the definition of time_t.
This is Mandrake 8.1 btw...
#ifndef _TIME_H
#if (! defined __need_time_t && !defined __need_clock_t && \
! defined __need_timespec)
# define _TIME_H 1
[...]
#ifdef _TIME_H
/* Used by other time functions. */
struct tm
{
int tm_sec; /* Seconds. [0-60] (1 leap second) */
int tm_min; /* Minutes. [0-59] */
[etc]
so if __need_time_t is defined, _TIME_H is not defined, and struct tm won't
make it....
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!