Skip to content

Commit

Permalink
pipelimit: _SC_NPROCESSORS_ONLN is available on FreeBSD
Browse files Browse the repository at this point in the history
- used for getting number of cpus
- reported on GH#24

(cherry picked from commit cf65a6a)
(cherry picked from commit a711f12)
  • Loading branch information
miconda committed Jan 15, 2015
1 parent d3d66b1 commit cd7e96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pipelimit/pipelimit.c
Expand Up @@ -176,7 +176,7 @@ struct module_exports exports= {
};


#if defined (__OS_darwin) || defined (__OS_freebsd)
#ifdef __OS_darwin
#include <sys/param.h>
#include <sys/sysctl.h>
#else
Expand All @@ -186,7 +186,7 @@ struct module_exports exports= {
int get_num_cpus() {
int count = 0;

#if defined (__OS_darwin) || defined (__OS_freebsd)
#ifdef __OS_darwin
int nm[2];
size_t len;

Expand Down

0 comments on commit cd7e96c

Please sign in to comment.