From cb993a43a6b228d34a82146f7988592faac22d3c Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 26 Dec 2016 07:01:03 +0000 Subject: Use clock_gettime() on macOS 10.12. --- configure | 4 ++++ 1 file changed, 4 insertions(+) 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")) { -- cgit v1.2.3