summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-12-26 07:01:03 +0000
committerPeter Powell <petpow@saberuk.com>2016-12-26 07:01:03 +0000
commitcb993a43a6b228d34a82146f7988592faac22d3c (patch)
tree6b642f4bf743c4f55b384d5923feacee8f4617af /configure
parent4b8f3dd68f7c3a273c1a892c0de54ea01e48db3e (diff)
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")) {