notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #669 from pcercuei/lightrec-fix-bios-munmap
[pcsx_rearmed.git]
/
deps
/
lightrec
/
recompiler.c
diff --git
a/deps/lightrec/recompiler.c
b/deps/lightrec/recompiler.c
index
4ddc522
..
7350adb
100644
(file)
--- a/
deps/lightrec/recompiler.c
+++ b/
deps/lightrec/recompiler.c
@@
-48,7
+48,7
@@
struct recompiler {
static unsigned int get_processors_count(void)
{
static unsigned int get_processors_count(void)
{
- unsigned int nb;
+ unsigned int nb
= 1
;
#if defined(PTW32_VERSION)
nb = pthread_num_processors_np();
#if defined(PTW32_VERSION)
nb = pthread_num_processors_np();
@@
-57,7
+57,7
@@
static unsigned int get_processors_count(void)
size_t size = sizeof(count);
nb = sysctlbyname("hw.ncpu", &count, &size, NULL, 0) ? 1 : count;
size_t size = sizeof(count);
nb = sysctlbyname("hw.ncpu", &count, &size, NULL, 0) ? 1 : count;
-#elif defined(_
_linux__
)
+#elif defined(_
SC_NPROCESSORS_ONLN
)
nb = sysconf(_SC_NPROCESSORS_ONLN);
#endif
nb = sysconf(_SC_NPROCESSORS_ONLN);
#endif