From 030ea321c2b386d11d3b7145b1f327e32297f230 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 5 Aug 2021 16:49:26 -0400 Subject: [PATCH] fix: msgpack requires limits.h for UINT_MAX MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Building with '-Wundef' reveals this issue : unpack.c: In function ‘template_callback_array’: unpack.c:197:17: warning: "UINT_MAX" is not defined, evaluates to 0 [-Wundef] 197 | #if SIZE_MAX == UINT_MAX | ^~~~~~~~ unpack.c: In function ‘template_callback_map’: unpack.c:241:17: warning: "UINT_MAX" is not defined, evaluates to 0 [-Wundef] 241 | #if SIZE_MAX == UINT_MAX | ^~~~~~~~ Change-Id: I7dadd9f7013d613509f66e67ff1beb8ae593d2bf Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- src/vendor/msgpack/lttng-config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vendor/msgpack/lttng-config.h b/src/vendor/msgpack/lttng-config.h index 073bf8da5..62258233d 100644 --- a/src/vendor/msgpack/lttng-config.h +++ b/src/vendor/msgpack/lttng-config.h @@ -8,6 +8,7 @@ #ifndef MSGPACK_LTTNG_CONFIG_H #define MSGPACK_LTTNG_CONFIG_H +#include #include #if __BYTE_ORDER == __LITTLE_ENDIAN -- 2.34.1