aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-04-07 18:44:21 +0200
committervanhauser-thc <vh@thc.org>2024-04-07 18:44:21 +0200
commit29544e4d2bf24859030823a4b6a13df00928f7e1 (patch)
treebce1d8b5da3622b94ffbc6244537632dcbc54525
parent420a90ff75bc37a2b02055b2587a69741a8194eb (diff)
downloadafl++-29544e4d2bf24859030823a4b6a13df00928f7e1.tar.gz
fix time
-rw-r--r--src/afl-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-common.c b/src/afl-common.c
index a956fef9..6d915b00 100644
--- a/src/afl-common.c
+++ b/src/afl-common.c
@@ -64,7 +64,8 @@ u8 last_intr = 0;
* FAST on such systems when COARSE is not already defined.
* - macOS has no support of CLOCK_MONOTONIC_COARSE clock type.
*/
-#if defined(OS_DARWIN) || defined(OS_SUNOS)
+#if defined(OS_DARWIN) || defined(OS_SUNOS) || defined(__APPLE__) || \
+ defined(__sun) || defined(__NetBSD__)
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#elif defined(OS_FREEBSD)
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST