X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=os%2Fhptime.c;h=771832307efe1493b58a327ef4541ccf1132070d;hb=bb650f9a4990206e0d731dbad03b52ca5830bb0e;hp=7be9ea206c0c9428871846444b88b8e5f0ababe0;hpb=6c1e871a96baf4245a04f0135d00fbea59af041c;p=bertos.git diff --git a/os/hptime.c b/os/hptime.c index 7be9ea20..77183230 100755 --- a/os/hptime.c +++ b/os/hptime.c @@ -36,13 +36,14 @@ hptime_t hptime_get(void) #elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) -#include +#include /* for gettimeofday() */ +#include /* for NULL */ hptime_t hptime_get(void) { struct timeval tv; - gettimeofday(&tv, 0); + gettimeofday(&tv, NULL); return (hptime_t)tv.tv_sec * HPTIME_TICKS_PER_SECOND + (hptime_t)tv.tv_usec; }