diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 1797f7a38142..d2cfe65660e3 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -534,7 +534,8 @@ out: PROC_UNLOCK(p); } -#if defined(__i386__) && __GNUC__ >= 2 && !defined(__INTEL_COMPILER) +#if (defined(__amd64__) || defined(__i386__)) && __GNUC__ >= 2 && \ + !defined(__INTEL_COMPILER) /* * Support for "--test-coverage --profile-arcs" in GCC. *