From: Michael Jeanson Date: Tue, 13 Oct 2020 20:43:13 +0000 (-0400) Subject: port: include limits.h first for CHAR_BIT X-Git-Tag: v2.13.0-rc1~483 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0a3faf2a4257f222d33f1fa0dbbea9f0b317889c;p=lttng-ust.git port: include limits.h first for CHAR_BIT On FreeBSD, CHAR_BIT is defined in limits.h, include it first so we don't get redifinition errors. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I694cc906d801bcd9b1e82dcbcf1163cdb3c41100 --- diff --git a/include/lttng/ust-tracer.h b/include/lttng/ust-tracer.h index 546fc2c5..fb9d1c87 100644 --- a/include/lttng/ust-tracer.h +++ b/include/lttng/ust-tracer.h @@ -27,6 +27,8 @@ * SOFTWARE. */ +#include + #if defined (__cplusplus) #include #endif