From 639082d2871a0cd0cca3d77fd72fb51002f0c4bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 19 May 2016 18:16:48 -0400 Subject: [PATCH] Fix Solaris 10 build: use lttng_strnlen() wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/common/macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/macros.h b/src/common/macros.h index 930438855..0e11d3c7a 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -21,6 +21,7 @@ #include #include +#include /* * Takes a pointer x and transform it so we can use it to access members @@ -87,7 +88,7 @@ void *zmalloc(size_t len) static inline int lttng_strncpy(char *dst, const char *src, size_t dst_len) { - if (strnlen(src, dst_len) == dst_len) { + if (lttng_strnlen(src, dst_len) == dst_len) { /* Fail since copying would result in truncation. */ return -1; } -- 2.34.1