Fix usage of GLIBC-only get_nprocs_conf()

Bug #1161565 reported by Jasper Lievisse Adriaanse
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Currently log.vala is using get_ncprocs_conf(), however, this function is a GNU-extension and just shorthand for the standard and portable version: sysconf(_SC_NPROCESSORS_CONF).

Attached is a patch which switches log.vala over to the portable version which also compiles fine on OpenBSD and all non-Linux platforms. This patch also needs "--pkg linux" added to AM_VALAFLAGS in libzeitgeist/

Revision history for this message
Jasper Lievisse Adriaanse (jasper-humppa) wrote :
Revision history for this message
Antoine Jacoutot (ajacoutot-bsdfrog) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers