From 7886ddc516f5a4cef1d3730306a2a2ded06d4986 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 12 Jan 2015 11:16:53 +0100 Subject: [PATCH] ratelimit: _SC_NPROCESSORS_ONLN is available on FreeBSD - used for getting number of cpus - reported on GH#24 --- modules/ratelimit/ratelimit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ratelimit/ratelimit.c b/modules/ratelimit/ratelimit.c index 6bbe5587a47..13961da0578 100644 --- a/modules/ratelimit/ratelimit.c +++ b/modules/ratelimit/ratelimit.c @@ -285,7 +285,7 @@ static int str_cpy(str * dest, str * src) return 0; } -#if defined (__OS_darwin) || defined (__OS_freebsd) +#ifdef __OS_darwin #include #include #else @@ -295,7 +295,7 @@ static int str_cpy(str * dest, str * src) int get_num_cpus() { int count = 0; -#if defined (__OS_darwin) || defined (__OS_freebsd) +#ifdef __OS_darwin int nm[2]; size_t len;