From: Art Cancro Date: Thu, 26 Oct 2017 02:58:04 +0000 (-0400) Subject: same fix in webcit X-Git-Tag: v939~517 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=5eac97938a6d6f6967d80a8fd914c51710c82ea9;hp=cca93fe181b01a40b924b7de7f813a6f4718b1c2;p=citadel.git same fix in webcit --- diff --git a/webcit/webserver.c b/webcit/webserver.c index e0e6e403b..99e303a09 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -272,7 +272,12 @@ int main(int argc, char **argv) } /* Tell libical to return an error instead of aborting if it sees badly formed iCalendar data. */ - icalerror_errors_are_fatal = 0; + +#ifdef LIBICAL_ICAL_EXPORT // cheap and sleazy way to detect libical >=2.0 + icalerror_set_errors_are_fatal(0); +#else + icalerror_errors_are_fatal = 0; +#endif /* Use our own prefix on tzid's generated from system tzdata */ icaltimezone_set_tzid_prefix("/citadel.org/");