From: Mathieu Desnoyers Date: Fri, 22 Feb 2013 13:35:37 +0000 (-0500) Subject: Fix build on architectures with HAVE_SCHED_GETCPU but without HAVE_SYSCONF X-Git-Tag: v0.8.0~106 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=63b495d8b20ff76ba08d823df2e9702acc936beb;hp=63b495d8b20ff76ba08d823df2e9702acc936beb;p=urcu.git Fix build on architectures with HAVE_SCHED_GETCPU but without HAVE_SYSCONF Noticed on: https://buildd.debian.org/status/package.php?p=liburcu Tail of log for liburcu on kfreebsd-amd64: CC urcu.lo In file included from urcu.c:450:0: urcu-call-rcu-impl.h:145:12: error: static declaration of 'sched_getcpu' follows non-static declaration In file included from /usr/include/sched.h:43:0, from /usr/include/pthread.h:20, from urcu.c:30: /usr/include/x86_64-kfreebsd-gnu/bits/sched.h:65:12: note: previous declaration of 'sched_getcpu' was here make[3]: *** [urcu.lo] Error 1 make[3]: Leaving directory `/build/buildd-liburcu_0.7.6-1-kfreebsd-amd64-nnkICd/liburcu-0.7.6' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/build/buildd-liburcu_0.7.6-1-kfreebsd-amd64-nnkICd/liburcu-0.7.6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/build/buildd-liburcu_0.7.6-1-kfreebsd-amd64-nnkICd/liburcu-0.7.6' dh_auto_build: make -j1 returned exit code 2 make: *** [build-arch] Error 2 Tail of log for liburcu on kfreebsd-i386: CC urcu.lo In file included from urcu.c:450:0: urcu-call-rcu-impl.h:145:12: error: static declaration of 'sched_getcpu' follows non-static declaration In file included from /usr/include/sched.h:43:0, from /usr/include/pthread.h:20, from urcu.c:30: /usr/include/i386-kfreebsd-gnu/bits/sched.h:65:12: note: previous declaration of 'sched_getcpu' was here make[3]: *** [urcu.lo] Error 1 make[3]: Leaving directory `/build/buildd-liburcu_0.7.6-1-kfreebsd-i386-sWzNKU/liburcu-0.7.6' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/build/buildd-liburcu_0.7.6-1-kfreebsd-i386-sWzNKU/liburcu-0.7.6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/build/buildd-liburcu_0.7.6-1-kfreebsd-i386-sWzNKU/liburcu-0.7.6' dh_auto_build: make -j1 returned exit code 2 make: *** [build-arch] Error 2 Signed-off-by: Mathieu Desnoyers ---