Browse Source

make parallel make work on illumos

tags/v0.2.16.rc1
Lauri Tirkkonen 9 years ago
parent
commit
8635d425c1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getarch.c

+ 2
- 2
getarch.c View File

@@ -86,7 +86,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#ifdef linux
#if defined(linux) || defined(__sun__)
#include <sys/sysinfo.h>
#include <unistd.h>
#endif
@@ -892,7 +892,7 @@ static int get_num_cores(void) {
size_t len;
#endif

#ifdef linux
#if defined(linux) || defined(__sun__)
//returns the number of processors which are currently online
return sysconf(_SC_NPROCESSORS_ONLN);



Loading…
Cancel
Save