diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-12-29 16:04:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 16:04:03 +0100 |
commit | a923a03031d0cd5869bb2f8e569ea21a1101c7d5 (patch) | |
tree | 6b642f4bf743c4f55b384d5923feacee8f4617af | |
parent | 4b8f3dd68f7c3a273c1a892c0de54ea01e48db3e (diff) | |
parent | cb993a43a6b228d34a82146f7988592faac22d3c (diff) |
Merge pull request #1275 from SaberUK/insp20+clock-gettime-osx
[2.0] 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")) { |