diff options
author | Peter Powell <petpow@saberuk.com> | 2016-12-26 05:17:41 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-12-26 05:17:41 +0000 |
commit | 27facf2e0cc75da52ce3acf2c21a06ea26d1d55d (patch) | |
tree | a168c55502a3bc3bb235927d0fd8737f100fca89 /configure | |
parent | 62aa55356300afd03fc1737114fa8c3929df0ed2 (diff) |
Fix the clock_gettime() test on macOS Sierra.
macOS now supports clock_gettime() but it is part of libSystem
rather than librt which does not exist on macOS.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ unless ($config{CXX}) { } my %compiler = get_compiler_info($config{CXX}); -$config{HAS_CLOCK_GETTIME} = run_test 'clock_gettime()', test_file($config{CXX}, 'clock_gettime.cpp', '-lrt'); +$config{HAS_CLOCK_GETTIME} = run_test 'clock_gettime()', test_file($config{CXX}, 'clock_gettime.cpp', $^O eq 'darwin' ? undef : '-lrt'); $config{HAS_EVENTFD} = run_test 'eventfd()', test_file($config{CXX}, 'eventfd.cpp'); if ($config{HAS_EPOLL} = run_test 'epoll', test_header($config{CXX}, 'sys/epoll.h')) { |