X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsysdep.c;h=4b8f4c6a681213f05ecfbe7bebb4c9a2e8d63363;hb=4b9dcaa967180e0b103ea558c1d04945044637ea;hp=fb34a4cef9d04b7c748f286412cb5d539e17108e;hpb=ccfce1854b9c2547d9b87ce07185d68b0df76d9e;p=citadel.git diff --git a/webcit/sysdep.c b/webcit/sysdep.c index fb34a4cef..4b8f4c6a6 100644 --- a/webcit/sysdep.c +++ b/webcit/sysdep.c @@ -25,18 +25,7 @@ #include #include #include - -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - +#include #include #include #include @@ -192,6 +181,8 @@ void end_critical_section(int which_one) void ShutDownWebcit(void) { + + DeleteHash(&GZMimeBlackList); free_zone_directory (); icaltimezone_release_zone_tab (); icalmemory_free_ring (); @@ -566,6 +557,9 @@ webcit_calc_dirs_n_files(int relh, const char *basedir, int home, char *webcitdi void drop_root(uid_t UID) { struct passwd pw, *pwp = NULL; +#ifdef HAVE_GETPWUID_R + char pwbuf[SIZ]; +#endif /* * Now that we've bound the sockets, change to the Citadel user id and its