From a42f48819a8e17ba21507a75a7cc4a07ce024a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= Date: Tue, 4 Jan 2011 23:52:17 +0200 Subject: [PATCH] fix --disable-pthreads build. --- freshclam/manager.c | 8 ++++++++ libclamav/others_common.c | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/freshclam/manager.c b/freshclam/manager.c index 9bc89a6f0..19eb41f43 100644 --- a/freshclam/manager.c +++ b/freshclam/manager.c @@ -567,6 +567,7 @@ static char *proxyauth(const char *user, const char *pass) return auth; } +#if BUILD_CLAMD int submitstats(const char *clamdcfg, const struct optstruct *opts) { int sd, clamsockd, bread, cnt, ret; @@ -744,6 +745,13 @@ int submitstats(const char *clamdcfg, const struct optstruct *opts) } return ret; } +#else +int submitstats(const char *clamdcfg, const struct optstruct *opts) +{ + logg("clamd not built, no statistics"); + return 52; +} +#endif static int Rfc2822DateTime(char *buf, time_t mtime) { diff --git a/libclamav/others_common.c b/libclamav/others_common.c index 1cc2a93a3..b721d7f5e 100644 --- a/libclamav/others_common.c +++ b/libclamav/others_common.c @@ -111,6 +111,10 @@ static inline void *cli_getctx(void) { return current_ctx ? current_ctx->cb_ctx : NULL; } + +void cli_logg_unsetup(void) +{ +} #endif uint8_t cli_debug_flag = 0;