projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca93fe
)
same fix in webcit
author
Art Cancro
<ajc@citadel.org>
Thu, 26 Oct 2017 02:58:04 +0000
(22:58 -0400)
committer
Art Cancro
<ajc@citadel.org>
Thu, 26 Oct 2017 02:58:04 +0000
(22:58 -0400)
webcit/webserver.c
patch
|
blob
|
history
diff --git
a/webcit/webserver.c
b/webcit/webserver.c
index e0e6e403bb4389eb750cd211973934d6d50a025e..99e303a098ddfb9aedc85d9a9fc353454ae321a4 100644
(file)
--- 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/");