port: include limits.h first for CHAR_BIT
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Oct 2020 20:43:13 +0000 (16:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Oct 2020 18:10:07 +0000 (14:10 -0400)
On FreeBSD, CHAR_BIT is defined in limits.h, include it first so we
don't get redifinition errors.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I694cc906d801bcd9b1e82dcbcf1163cdb3c41100

include/lttng/ust-tracer.h

index 546fc2c5422cbfde9a0c38d16b43ebff0f1dd93b..fb9d1c874d4aa4256ff64227c3e9b937927c5b21 100644 (file)
@@ -27,6 +27,8 @@
  * SOFTWARE.
  */
 
+#include <limits.h>
+
 #if defined (__cplusplus)
 #include <type_traits>
 #endif
This page took 0.026174 seconds and 4 git commands to generate.