From: Jürg Billeter Date: Wed, 23 Mar 2011 21:21:50 +0000 (+0100) Subject: D-Bus: Add missing string.h includes X-Git-Tag: 0.12.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd6503bf96fadd3a4052e5a5b66df69544d0c889;p=thirdparty%2Fvala.git D-Bus: Add missing string.h includes --- diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala index adc2f6423..6df1a2dc7 100644 --- a/codegen/valagdbusclientmodule.vala +++ b/codegen/valagdbusclientmodule.vala @@ -436,6 +436,8 @@ public class Vala.GDBusClientModule : GDBusModule { continue; } + cfile.add_include ("string.h"); + var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp")); ccheck.add_argument (new CCodeIdentifier ("signal_name")); ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (sig)))); diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala index 8899e21b6..a0642ff83 100644 --- a/codegen/valagdbusservermodule.vala +++ b/codegen/valagdbusservermodule.vala @@ -659,6 +659,8 @@ public class Vala.GDBusServerModule : GDBusClientModule { continue; } + cfile.add_include ("string.h"); + var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp")); ccheck.add_argument (new CCodeIdentifier ("method_name")); ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (m)))); @@ -734,6 +736,8 @@ public class Vala.GDBusServerModule : GDBusClientModule { continue; } + cfile.add_include ("string.h"); + var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp")); ccheck.add_argument (new CCodeIdentifier ("property_name")); ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (prop)))); @@ -800,6 +804,8 @@ public class Vala.GDBusServerModule : GDBusClientModule { continue; } + cfile.add_include ("string.h"); + var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp")); ccheck.add_argument (new CCodeIdentifier ("property_name")); ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (prop))));