diff options
author | dimitri staessens <[email protected]> | 2017-08-10 22:56:12 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-08-11 11:52:09 +0200 |
commit | aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43 (patch) | |
tree | 89cb20e426cb3977337e1d16bdb0a445622d6f75 /src/lib/tests | |
parent | 2b42b1e1121dfd715a78502a3652d326330b8160 (diff) | |
download | ouroboros-aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43.tar.gz ouroboros-aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43.zip |
build: Fix compilation on OS X Sierra
Diffstat (limited to 'src/lib/tests')
-rw-r--r-- | src/lib/tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/lib/tests/time_utils_test.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tests/CMakeLists.txt b/src/lib/tests/CMakeLists.txt index 46a3e91f..41c2074a 100644 --- a/src/lib/tests/CMakeLists.txt +++ b/src/lib/tests/CMakeLists.txt @@ -14,6 +14,7 @@ create_test_sourcelist(${PARENT_DIR}_tests test_suite.c ) add_executable(${PARENT_DIR}_test EXCLUDE_FROM_ALL ${${PARENT_DIR}_tests}) + target_link_libraries(${PARENT_DIR}_test ouroboros) add_dependencies(check ${PARENT_DIR}_test) diff --git a/src/lib/tests/time_utils_test.c b/src/lib/tests/time_utils_test.c index 86636c15..2878132b 100644 --- a/src/lib/tests/time_utils_test.c +++ b/src/lib/tests/time_utils_test.c @@ -33,7 +33,7 @@ static void ts_print(struct timespec * s) static void tv_print(struct timeval * v) { - printf("timeval is %zd:%ld.\n", (ssize_t) v->tv_sec, v->tv_usec); + printf("timeval is %zd:%zu.\n", (ssize_t) v->tv_sec, (size_t) v->tv_usec); } static void ts_init(struct timespec * s, |