From aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 10 Aug 2017 22:56:12 +0200 Subject: build: Fix compilation on OS X Sierra --- src/lib/time_utils.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/lib/time_utils.c') diff --git a/src/lib/time_utils.c b/src/lib/time_utils.c index 07994af2..c644c889 100644 --- a/src/lib/time_utils.c +++ b/src/lib/time_utils.c @@ -142,16 +142,3 @@ int ts_to_tv(const struct timespec * src, return 0; } - -#ifdef __APPLE__ -int clock_gettime(int clock, - struct timespec * t) -{ - struct timeval tv; - int ret = gettimeofday(&tv, NULL); - t->tv_sec = tv.tv_sec; - t->tv_nsec = tv.tv_usec * 1000; - (void) clock; - return ret; -} -#endif -- cgit v1.2.3