Initialize value for correct counting of # cpu on macosx
SVN revision: 43571
This commit is contained in:
parent
5e5ee2eca2
commit
279e0dde28
|
@ -149,8 +149,8 @@ EAPI int eina_cpu_count(void)
|
|||
# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || ( defined (__MACH__) && defined (__APPLE__))
|
||||
|
||||
int mib[4];
|
||||
size_t len;
|
||||
int cpus;
|
||||
size_t len = sizeof(cpus);
|
||||
|
||||
mib[0] = CTL_HW;
|
||||
#ifdef HW_AVAILCPU
|
||||
|
|
Loading…
Reference in New Issue