From 19210120d21fb2aa43ce3ddcb34f7a3db2c38e3f Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 6 May 2012 17:42:23 -0400 Subject: [PATCH] add int math header --- mgetsockopt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mgetsockopt.c b/mgetsockopt.c index 5ed7792..79e5851 100644 --- a/mgetsockopt.c +++ b/mgetsockopt.c @@ -5,6 +5,8 @@ #include #include +#include + #pragma noroot #pragma optimize 79 @@ -22,7 +24,7 @@ static void ticks_to_timeval(LongWord ticks, struct timeval *tv) qr = LongDivide(ticks, 60); tv->tv_sec = qr.quotient; - tv->tv_usec = Multiply(qr.remainder, 16667); + tv->tv_usec = qr.remainder * 16667; // qr.remainder * 1,000,000 / 60 }