diff --git a/cache-utils.c b/cache-utils.c index b37ddd4992..45d62c91c5 100644 --- a/cache-utils.c +++ b/cache-utils.c @@ -37,6 +37,7 @@ static void ppc_init_cacheline_sizes(char **envp) } #elif defined __APPLE__ +#include #include #include @@ -46,6 +47,7 @@ static void ppc_init_cacheline_sizes(void) unsigned cacheline; int name[2] = { CTL_HW, HW_CACHELINE }; + len = sizeof(cacheline); if (sysctl(name, 2, &cacheline, &len, NULL, 0)) { perror("sysctl CTL_HW HW_CACHELINE failed"); } else {