diff --git a/ChangeLog b/ChangeLog index 8168ac40..dd67dde9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Sep 15 17:32:16 CEST 2001 Daniel Veillard + + * libxslt/extra.c: okay the code from Norm is really non + portable and break everywhere except on Sun and Linux + platform. Compile it only on those targets. + Sat Sep 15 06:25:02 CEST 2001 Thomas Broyer * libexslt/date.c: fixed some bugs (reported by Charles Bozeman diff --git a/libxslt/extra.c b/libxslt/extra.c index 121ba434..e28eae03 100644 --- a/libxslt/extra.c +++ b/libxslt/extra.c @@ -146,11 +146,10 @@ xsltFunctionNodeSet(xmlXPathParserContextPtr ctxt, int nargs){ } /* - * Seems FreeBSD decided not to provide the timezone libc varaible - * C.f bug report #59570 http://bugzilla.gnome.org/show_bug.cgi?id=59570 + * Okay the following really seems unportable and since it's not + * part of any standard I'm not too ashamed to do this */ -#ifndef __FreeBSD__ - +#if defined(linux) || defined(__sun) #if defined(HAVE_MKTIME) && defined(HAVE_LOCALTIME) && defined(HAVE_ASCTIME) #define WITH_LOCALTIME @@ -268,7 +267,7 @@ xsltFunctionLocalTime(xmlXPathParserContextPtr ctxt, int nargs) { valuePush(ctxt, xmlXPathNewString((xmlChar *)result)); } #endif -#endif /* __FreeBSD__ */ +#endif /* linux or sun */ /**