On Wed, Sep 12, 2001 at 08:14:51PM +0100, Paul Millar wrote:
>
> time() and localtime() are both defined in time.h. If a function isn't
> prototyped, the C compiler assumes it returns an int. The localtime()
> function returns "struct tm *", so when this is dereferenced via the "->"
> operator (which I'm assuming it does), you have the:
> System.c:418: invalid type argument of `->'
> error message.
>
> I'd try checking that libraries/clib/native/System.c has something like
>
> #include <time.h>
>
> near the top. If not, try adding and recompiling.
>
It has
#if defined(HAVE_TIME_H)
#include <time.h>
#endif
--
Gavin McCord
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------