projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97cd4b8
)
make parallel make work on illumos
author
Lauri Tirkkonen
<lotheac@iki.fi>
Fri, 22 Jan 2016 16:48:50 +0000
(18:48 +0200)
committer
Lauri Tirkkonen
<lotheac@iki.fi>
Fri, 22 Jan 2016 16:55:48 +0000
(18:55 +0200)
getarch.c
patch
|
blob
|
history
diff --git
a/getarch.c
b/getarch.c
index
0a49fd1
..
ea6edbf
100644
(file)
--- a/
getarch.c
+++ b/
getarch.c
@@
-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
-#if
def 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
-#if
def linux
+#if
defined(linux) || defined(__sun__)
//returns the number of processors which are currently online
return sysconf(_SC_NPROCESSORS_ONLN);