On Sun, Jan 27, 2002 at 12:58:37PM +0000, Nick Murtagh wrote:
> 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.
Ahh - light dawns. As previously mentioned, simply including time.h rather
than sys/time.h makes my program work so my problem is solved but it was
bugging me. And that #define __need_time_t is one of the differences between
sys/time.h in 7.3 and 6.4
Niall
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!