From 99f227bf33834cdf7c9305865b326cfeeddfcd96 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Sat, 27 Dec 2014 15:53:23 +0100 Subject: [PATCH] vtimer: enable vtimer_gettimeofday as fallback Declaring vtimer_gettimeofday as a "weak" alias for the _gettimeofday syscall. --- sys/vtimer/vtimer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vtimer/vtimer.c b/sys/vtimer/vtimer.c index 4854a59eba..cfbdfd7c80 100644 --- a/sys/vtimer/vtimer.c +++ b/sys/vtimer/vtimer.c @@ -41,6 +41,8 @@ #define SECONDS_PER_TICK (4096U) #define MICROSECONDS_PER_TICK (4096UL * 1000000) +void _gettimeofday(void) __attribute__ ((weak, alias("vtimer_gettimeofday"))); + static void vtimer_callback(void *ptr); static void vtimer_callback_tick(vtimer_t *timer); static void vtimer_callback_msg(vtimer_t *timer);