[sysprof: 3/4] libsysprof-capture: Add a missing string.h include



commit 1c32c1ece500bba3826c72afcb6e751abe034605
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Jul 6 11:27:44 2020 +0100

    libsysprof-capture: Add a missing string.h include
    
    It’s needed for `strdup()` which is now used in a macro in this header.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 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 cf814da..7162d3d 100644
--- a/src/libsysprof-capture/sysprof-macros-internal.h
+++ b/src/libsysprof-capture/sysprof-macros-internal.h
@@ -59,6 +59,8 @@
 
 #pragma once
 
+#include <string.h>
+
 #define sysprof_assert_not_reached() assert (false)
 
 #define SYSPROF_N_ELEMENTS(a) (sizeof (a) / sizeof (*a))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]