Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Gartner <stefang@aon.at>2008-03-20 01:58:16 +0300
committerStefan Gartner <stefang@aon.at>2008-03-20 01:58:16 +0300
commit8c704ec5a65686fae1179745d768ffe7d6d3c198 (patch)
treed35674763ab2bf3a7eeaa25992ad9adbce1acdcb
parent1ced0b5e10c8a1c2448af40564409b885a4c4fdf (diff)
test commit: fix autothreads on irix
-rw-r--r--source/blender/blenlib/intern/threads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c
index f4a44b3a0db..92fad291e83 100644
--- a/source/blender/blenlib/intern/threads.c
+++ b/source/blender/blenlib/intern/threads.c
@@ -1,6 +1,6 @@
/**
*
- * $Id:
+ * $Id$
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
@@ -250,6 +250,8 @@ int BLI_system_thread_count( void )
mib[1] = HW_NCPU;
len = sizeof(t);
sysctl(mib, 2, &t, &len, NULL, 0);
+# elif defined(__sgi)
+ t = sysconf(_SC_NPROC_ONLN);
# else
t = (int)sysconf(_SC_NPROCESSORS_ONLN);
# endif