]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Add missing string.h includes
authorJürg Billeter <j@bitron.ch>
Wed, 23 Mar 2011 21:21:50 +0000 (22:21 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 23 Mar 2011 21:21:50 +0000 (22:21 +0100)
codegen/valagdbusclientmodule.vala
codegen/valagdbusservermodule.vala

index adc2f64237abb13c07fda7767d1ca6177bc94044..6df1a2dc75c5071450daf6aaeedc6ce8bc87be7f 100644 (file)
@@ -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))));
index 8899e21b6bc91ac4a5499c1c7294c4d80ff103ed..a0642ff83596363ce4ad98192deacbd61de309f9 100644 (file)
@@ -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))));