aboutsummaryrefslogtreecommitdiffstats
path: root/src/beaver-target-qemu.c
diff options
context:
space:
mode:
authorRob Bradford <rob@o-hand.com>2008-09-11 09:46:41 +0000
committerrob <rob@aea7fca7-3721-49c4-ace3-ac8c44b998bb>2008-09-11 09:46:41 +0000
commitb2adfa62fcc4717a6abb77286ca86a20574dcc41 (patch)
tree9cb4ecb55c4af43e67d5ded8c271d653495eb4a6 /src/beaver-target-qemu.c
parent82afb16110d75ebeaf902902916832bd762db83b (diff)
downloadanjuta-poky-b2adfa62fcc4717a6abb77286ca86a20574dcc41.tar.gz
anjuta-poky-b2adfa62fcc4717a6abb77286ca86a20574dcc41.tar.bz2
anjuta-poky-b2adfa62fcc4717a6abb77286ca86a20574dcc41.zip
2008-09-11 Rob Bradford <rob@linux.intel.com>
* anjuta-plugin-sdk/src/beaver-target-qemu.c: * anjuta-plugin-sdk/src/beaver-target.c: * anjuta-plugin-sdk/src/beaver-util.h: * anjuta-plugin-sdk/src/plugin.c: Make the plugin build with Anjuta 2.23.x
Diffstat (limited to 'src/beaver-target-qemu.c')
-rw-r--r--src/beaver-target-qemu.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/beaver-target-qemu.c b/src/beaver-target-qemu.c
index b98e780..a5fb371 100644
--- a/src/beaver-target-qemu.c
+++ b/src/beaver-target-qemu.c
@@ -239,11 +239,24 @@ beaver_target_qemu_start (BeaverTargetQEMU *btq, GError **out_err)
if (priv->kernel && priv->rootfs)
{
gchar *args[] = {QEMU_SCRIPT, priv->kernel, priv->rootfs, NULL};
-
- if (!anjuta_launcher_execute_v (priv->launcher, args, launcher_data_cb, btq))
+#ifdef ANJUTA_2_23_OR_HIGHER
+ if (!anjuta_launcher_execute_v (priv->launcher,
+ args,
+ NULL,
+ launcher_data_cb,
+ btq))
{
g_warning ("Error launching QEMU");
return FALSE;
+#else
+ if (!anjuta_launcher_execute_v (priv->launcher,
+ args,
+ launcher_data_cb,
+ btq))
+ {
+ g_warning ("Error launching QEMU");
+ return FALSE;
+#endif
} else {
beaver_target_qemu_set_state (BEAVER_TARGET (btq),
TARGET_STATE_READY);