summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-12-29 16:04:03 +0100
committerGitHub <noreply@github.com>2016-12-29 16:04:03 +0100
commita923a03031d0cd5869bb2f8e569ea21a1101c7d5 (patch)
tree6b642f4bf743c4f55b384d5923feacee8f4617af /configure
parent4b8f3dd68f7c3a273c1a892c0de54ea01e48db3e (diff)
parentcb993a43a6b228d34a82146f7988592faac22d3c (diff)
Merge pull request #1275 from SaberUK/insp20+clock-gettime-osx
[2.0] Use clock_gettime() on macOS 10.12.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 7dbccadf2..d3569d0d0 100755
--- a/configure
+++ b/configure
@@ -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")) {