From d9897897fcf9d1276190b5d20955c72fd632acac Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 16 Apr 2022 14:55:02 -0700 Subject: fixes #1576 Fallback not used when clock_gettime is unavailable (crash on OSX < 10.12) --- src/platform/posix/posix_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/platform') diff --git a/src/platform/posix/posix_clock.c b/src/platform/posix/posix_clock.c index d5435009..0db447e9 100644 --- a/src/platform/posix/posix_clock.c +++ b/src/platform/posix/posix_clock.c @@ -1,5 +1,5 @@ // -// Copyright 2021 Garrett D'Amore +// Copyright 2022 Staysail Systems, Inc. // Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -17,7 +17,7 @@ #include #include -#ifndef NNG_USE_GETTIMEOFDAY +#if defined(NNG_HAVE_CLOCK_GETTIME) && !defined(NNG_USE_GETTIMEOFDAY) // Use POSIX realtime stuff nni_time -- cgit v1.2.3-70-g09d2