Subject: Re: gtime()
To: None <lucio@proxima.alt.za>
From: Klaus Klein <kleink@ira.uka.de>
List: tech-userlevel
Date: 09/15/1998 14:28:17
Lucio de Re <lucio@proxima.alt.za> writes:
> From /usr/include/time.h:
>
> /* $NetBSD: time.h,v 1.13 1997/10/04 15:00:42 kleink Exp $ */
>
> [ ... ]
> long gtime __P((struct tm *const));
> ^^^^^
> [ etc. ]
> The declaration of gtime() conflicts with a "static" declaration in two
> UMich LDAP modules. I could not find the corresponding functions in
> the obvious libraries.
I have removed this declaration in -current; the function is intended
to be available on Mach systems only.
> Does anyone know where I should look? Presumably all of the above are
> missing, in which case the declaration in /usr/include/time.h is more
> harmful than useful.
See src/lib/libc/time/localtime.c; note the #ifdef CMUCS conditional.