From 1c32c1ece500bba3826c72afcb6e751abe034605 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 6 Jul 2020 11:27:44 +0100 Subject: [PATCH] libsysprof-capture: Add a missing string.h include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s needed for `strdup()` which is now used in a macro in this header. Signed-off-by: Philip Withnall --- src/libsysprof-capture/sysprof-macros-internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsysprof-capture/sysprof-macros-internal.h b/src/libsysprof-capture/sysprof-macros-internal.h index cf814dad..7162d3dc 100644 --- a/src/libsysprof-capture/sysprof-macros-internal.h +++ b/src/libsysprof-capture/sysprof-macros-internal.h @@ -59,6 +59,8 @@ #pragma once +#include + #define sysprof_assert_not_reached() assert (false) #define SYSPROF_N_ELEMENTS(a) (sizeof (a) / sizeof (*a))