On Wed, 21 Oct 1998, Geoff Hutchison wrote:

> At 1:36 PM -0400 10/20/98, Egon Schmid wrote:
> >> I don't know if you got the CVS version with my attempted fix (at the
> >top
> >> of timegm.c):
> >>
> >> #ifndef __gmtime_r
> >> #define extern struct tm *__gmtime_r __P ((__const time_t *__timer, \
> >>                struct tm *__tp));
> >> #endif
> >
> >My local guru told me to delete the #define. No it works on FreeBSD. As
> >non-root I had to append in Makefile.config the missing lib -ldb.
> 
> Hm? Did the htlib stuff compile after adding "-ldb"?

configure didn't recognice the -ldb and let it out in the Makefile. The
whole compilation was successful. I could not make install, because the
provider give me only access to /usr/home/six.
 
> And what about the OSes where it still isn't defined? For example, this
> doesn't seem to work on Digital UNIX. Since I don't know much about
> conditional definitions in C, I'm slightly lost. Doesn't this define the
> struct if it doesn't already exist?

To make it more clear, I have the following in timegm.c:

#ifndef __gmtime_r
extern struct tm *__gmtime_r __P ((__const time_t *__timer, \
                struct tm *__tp));
#endif

That's the define of __gmtime_r itself.

-Egon

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to