diff options
author | dimitri staessens <[email protected]> | 2017-08-11 09:57:31 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-08-11 09:57:31 +0000 |
commit | f957c2c499f8093ae86e673e2170f9dbfdcb761a (patch) | |
tree | 89cb20e426cb3977337e1d16bdb0a445622d6f75 /src/lib/time_utils.c | |
parent | 2b42b1e1121dfd715a78502a3652d326330b8160 (diff) | |
parent | aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43 (diff) | |
download | ouroboros-f957c2c499f8093ae86e673e2170f9dbfdcb761a.tar.gz ouroboros-f957c2c499f8093ae86e673e2170f9dbfdcb761a.zip |
Merged in dstaesse/ouroboros/be-apple (pull request #548)
build: Fix compilation on OS X Sierra
Diffstat (limited to 'src/lib/time_utils.c')
-rw-r--r-- | src/lib/time_utils.c | 13 |
1 files changed, 0 insertions, 13 deletions
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 |