diff options
author | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-05-12 02:26:49 +0000 |
---|---|---|
committer | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-05-12 02:26:49 +0000 |
commit | 49d601cbf2f50bfa21bc62f48ded01eb7f768d8a (patch) | |
tree | 2f55a5f8f93cf27b21e364eeb61be5a01d65eefc /timertest.c | |
parent | 5349adbff16691dbc4243738468d0105cea54c03 (diff) |
fix some compilation issues (bug #4039)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@643 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'timertest.c')
-rwxr-xr-x | timertest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/timertest.c b/timertest.c index 5849e21..df224b2 100755 --- a/timertest.c +++ b/timertest.c @@ -7,7 +7,12 @@ #include <sys/select.h> #include <sys/time.h> #include <errno.h> + +#ifdef STANDALONE_ZAPATA #include "zaptel.h" +#else +#include <linux/zaptel.h> +#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); } |