From 54ab22ade24471ed48fb7e6eb9f5792b987a701d Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 16 Apr 2020 10:00:21 +0200 Subject: [PATCH] glib-2.0: Guard Pid.to_string() with GLIB_2_50 to deal with G_PID_FORMAT Otherwise building with glib-2.0 < 2.50 breaks due availability check of GLib.Pid.FORMAT. --- vapi/glib-2.0.vapi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index c67d4143e..89e6dd34e 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1894,8 +1894,10 @@ namespace GLib { [Version (since = "2.50")] public const string FORMAT; +#if GLIB_2_50 [CCode (cname = "g_strdup_printf", instance_pos = -1)] public string to_string (string format = "%" + FORMAT); +#endif } public delegate void ChildWatchFunc (Pid pid, int status); -- 2.47.2