make parallel make work on illumos
This commit is contained in:
parent
97cd4b8aee
commit
8635d425c1
|
@ -86,7 +86,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef linux
|
#if defined(linux) || defined(__sun__)
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -892,7 +892,7 @@ static int get_num_cores(void) {
|
||||||
size_t len;
|
size_t len;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef linux
|
#if defined(linux) || defined(__sun__)
|
||||||
//returns the number of processors which are currently online
|
//returns the number of processors which are currently online
|
||||||
return sysconf(_SC_NPROCESSORS_ONLN);
|
return sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue