diff options
author | Peter Powell <petpow@saberuk.com> | 2016-12-26 07:01:03 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-12-26 07:01:03 +0000 |
commit | cb993a43a6b228d34a82146f7988592faac22d3c (patch) | |
tree | 6b642f4bf743c4f55b384d5923feacee8f4617af | |
parent | 4b8f3dd68f7c3a273c1a892c0de54ea01e48db3e (diff) |
Use clock_gettime() on macOS 10.12.
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -877,6 +877,10 @@ print FILEHANDLE "#define MAXBUF " . ($config{MAXBUF}+2) . "\n"; } if ($config{OSNAME} !~ /DARWIN/i) { print FILEHANDLE "#define HAS_CLOCK_GETTIME\n"; + } else { + print FILEHANDLE "#ifdef MAC_OS_X_VERSION_10_12\n"; + print FILEHANDLE "# define HAS_CLOCK_GETTIME\n"; + print FILEHANDLE "#endif\n"; } my $use_hiperf = 0; if (($has_kqueue) && ($config{USE_KQUEUE} eq "y")) { |