[ILUG] C compilation error
Niall O Broin
niall at linux.ie
Sun Jan 27 17:55:11 GMT 2002
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
More information about the ILUG
mailing list