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;
}
#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)
{

@ -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;

Loading…
Cancel
Save