Hi Geoffrey,
I have your defines in timegm.c (/10/18/98). But this define doesn't be
helpfull on FreeBSD. Any other suggestion?
-Egon
On Mon, 19 Oct 1998, Geoff Hutchison wrote:
>
> >gcc -c -DDEFAULT_CONFIG_FILE=\"/usr/home/six/bin/conf/htdig.conf\"
> >-I../htlib -I../htcommon -I../db-2.4.14/dist -I../rx-1.5/rx -I../include
> >-g -O2 timegm.c
> >timegm.c: In function `mytimegm':
> >timegm.c:49: `__gmtime_r' undeclared (first use this function)
> >timegm.c:49: (Each undeclared identifier is reported only once
> >timegm.c:49: for each function it appears in.)
> >*** Error code 1
>
> I was trying to import useful functions from the GNU libc distribution
> (glibc-2.0.6). Since the header files on FreeBSD don't include "__gmtime_r"
> (and why should they, it's an internal glibc type) it won't compile.
>
> 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
>
> I don't actually know if this helps since I don't have access to a
> non-glibc system at the moment.
>
> >On my Debian 2.0 it compiles without any error messages.
>
> This is because Debian 2.0 includes the glibc2 headers (which define this
> internal type). This is why I didn't notice the error until Andrew and you
> brought it to my attention.
>
>
> -Geoff Hutchison
> Williams Students Online
> http://wso.williams.edu/
>
>
> ----------------------------------------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> [EMAIL PROTECTED] containing the single word "unsubscribe" in
> the body of the message.
>
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.