]> git.sesse.net Git - stockfish/commit
Fix cpu_count() on some platforms
authorMarco Costalba <mcostalba@gmail.com>
Thu, 25 Apr 2013 08:56:56 +0000 (10:56 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 25 Apr 2013 08:56:56 +0000 (10:56 +0200)
commit4381ea23feb33831ebe889e30645e10cf7032530
treedcfe688b58220a053c2af3fe26664f6153c3ad6a
parentf84f04742a30166c2751de28245e11922da132fb
Fix cpu_count() on some platforms

When we use sysconf(_SC_NPROCESSORS_ONLN) to get number of
cores, we have to include sysconf library that is unistd.h

Sometimes it happens to work just becuase unistd.h indirectly
included by some other libraries, but not always.

Reported and fixed by Eyal BD

No functional change.
src/platform.h