From: Rico Tzschichholz Date: Mon, 8 Feb 2021 08:27:31 +0000 (+0100) Subject: codegen: Include for memcpy usage in _vala_memdup2() X-Git-Tag: 0.51.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b81926eecb2ec4678486596d4edce7170a32fe0;p=thirdparty%2Fvala.git codegen: Include for memcpy usage in _vala_memdup2() --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index d12e038f2..1b67a7172 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -760,6 +760,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { void append_vala_memdup2 () { // g_malloc cfile.add_include ("glib.h"); + // memcpy + cfile.add_include ("string.h"); var fun = new CCodeFunction ("_vala_memdup2", "gpointer"); fun.modifiers = CCodeModifiers.STATIC | CCodeModifiers.INLINE;