From 334673e99af03698b6aa4771749dd4cde5cfe973 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 20 Apr 2005 16:17:17 +0000 Subject: build fixes for minor zaptel tools (bug #4039) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@630 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- timertest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'timertest.c') diff --git a/timertest.c b/timertest.c index 5849e21..df224b2 100755 --- a/timertest.c +++ b/timertest.c @@ -7,7 +7,12 @@ #include #include #include + +#ifdef STANDALONE_ZAPATA #include "zaptel.h" +#else +#include +#endif int main(int argc, char *argv[]) { @@ -43,7 +48,7 @@ int main(int argc, char *argv[]) exit(1); } gettimeofday(&now, NULL); - printf("Timer Expired (%d ms)!\n", (now.tv_sec - orig.tv_sec) * 1000 + (now.tv_usec - orig.tv_usec) / 1000); + printf("Timer Expired (%ld ms)!\n", (now.tv_sec - orig.tv_sec) * 1000 + (now.tv_usec - orig.tv_usec) / 1000); } exit(0); } -- cgit v1.2.3