From: Mathieu Desnoyers Date: Tue, 21 Feb 2012 00:17:08 +0000 (-0500) Subject: fls: use local namespace to do not clash with FreeBSD string.h X-Git-Tag: v2.1.0-rc1~97^2~35 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=bfd265823dd6c3b272b92c6e39456e851bfd51ce;hp=2ae577586ce440e59acd37c0110b80a595a64d12;p=lttng-ust.git fls: use local namespace to do not clash with FreeBSD string.h Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/backend_internal.h b/libringbuffer/backend_internal.h index 36d53dfd..c9ed81be 100644 --- a/libringbuffer/backend_internal.h +++ b/libringbuffer/backend_internal.h @@ -436,7 +436,7 @@ do { \ /* arch-agnostic implementation */ -static inline int fls(unsigned int x) +static inline int lttng_ust_fls(unsigned int x) { int r = 32; @@ -469,7 +469,7 @@ static inline int get_count_order(unsigned int count) { int order; - order = fls(count) - 1; + order = lttng_ust_fls(count) - 1; if (count & (count - 1)) order++; return order;