From bfd265823dd6c3b272b92c6e39456e851bfd51ce Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 20 Feb 2012 19:17:08 -0500 Subject: [PATCH] fls: use local namespace to do not clash with FreeBSD string.h Signed-off-by: Mathieu Desnoyers --- libringbuffer/backend_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1