Bug#576895: libphash: FTBFS on kfreebsd-*: unable to compile ph_num_threads()
Petr Salinger
Petr.Salinger at seznam.cz
Thu Apr 8 10:41:17 UTC 2010
Hi,
please change tests for libc functionality to
test libc variant, not kernel.
Petr
--- src/pHash.cpp
+++ src/pHash.cpp
@@ -34,7 +34,7 @@
int ph_num_threads()
{
int numCPU = 1;
- #ifdef linux
+ #ifdef __GLIBC__
numCPU = sysconf( _SC_NPROCESSORS_ONLN );
#else
nt mib[4];
@@ -1098,7 +1098,7 @@
m->branchfactor = 2;
m->pathlength = 5;
m->leafcapacity = 23;
- #ifdef linux
+ #ifdef __GLIBC__
m->pgsize = sysconf(_SC_PAGE_SIZE);
#else
m->pgsize = getpagesize();
More information about the forensics-devel
mailing list