From 319116a6db7e355525ad0fdc76ec3fbf863a1e00 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Fri, 29 May 2015 11:41:34 +0200 Subject: [PATCH] fix win32 compilation issue --- tools/auto_answer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/auto_answer.c b/tools/auto_answer.c index dd7c188c2..d5e5a3f84 100644 --- a/tools/auto_answer.c +++ b/tools/auto_answer.c @@ -35,11 +35,11 @@ static bool_t print_stats=FALSE; static void stop(int signum){ running=FALSE; } - +#ifndef WIN32 static void stats(int signum){ print_stats=TRUE; } - +#endif #ifndef PACKAGE_DATA_DIR #define PACKAGE_DATA_DIR '.' #endif @@ -86,7 +86,9 @@ int main(int argc, char *argv[]){ policy.automatically_accept=TRUE; signal(SIGINT,stop); +#ifndef WIN32 signal(SIGUSR1,stats); +#endif for(i = 1; i < argc; ++i) { if (strcmp(argv[i], "--verbose") == 0) { linphone_core_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);