aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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