From: Michael Jeanson Date: Mon, 15 Aug 2022 15:11:54 +0000 (-0400) Subject: fix: ifdef linux specific cpu count compat X-Git-Tag: v0.14.0~21 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=da44a94383dab6fcf2001e6d447a503259476760;hp=da44a94383dab6fcf2001e6d447a503259476760;p=urcu.git fix: ifdef linux specific cpu count compat Expand the '#ifdef __linux__' block in src/compat-cpu.h to all static inline functions related to sysfs since they are only useful on Linux and fail to build on some non-Linux platforms. This issue was reported on QNX. The corresponding unit tests have to be skipped on non-Linux platforms. Thanks to Elad Lahav for reporting this issue. Change-Id: I17c88a9a2fb5b9be6cf5325234a18ff40788cd09 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---