fix --disable-pthreads build.

remotes/push_mirror/multihash
Török Edvin 15 years ago
parent 45388ac54e
commit a42f48819a
  1. 8
      freshclam/manager.c
  2. 4
      libclamav/others_common.c

@ -567,6 +567,7 @@ static char *proxyauth(const char *user, const char *pass)
return auth; return auth;
} }
#if BUILD_CLAMD
int submitstats(const char *clamdcfg, const struct optstruct *opts) int submitstats(const char *clamdcfg, const struct optstruct *opts)
{ {
int sd, clamsockd, bread, cnt, ret; int sd, clamsockd, bread, cnt, ret;
@ -744,6 +745,13 @@ int submitstats(const char *clamdcfg, const struct optstruct *opts)
} }
return ret; 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) static int Rfc2822DateTime(char *buf, time_t mtime)
{ {

@ -111,6 +111,10 @@ static inline void *cli_getctx(void)
{ {
return current_ctx ? current_ctx->cb_ctx : NULL; return current_ctx ? current_ctx->cb_ctx : NULL;
} }
void cli_logg_unsetup(void)
{
}
#endif #endif
uint8_t cli_debug_flag = 0; uint8_t cli_debug_flag = 0;

Loading…
Cancel
Save