[gimp] app: in gimp-spawn.c, avoid warning when we don't have vfork()



commit e1ed39e3a3a55f57be232b5fcc2be7d7ba3347b2
Author: Ell <ell_se yahoo com>
Date:   Mon Mar 5 02:43:44 2018 -0500

    app: in gimp-spawn.c, avoid warning when we don't have vfork()

 app/core/gimp-spawn.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp-spawn.c b/app/core/gimp-spawn.c
index 26fec13..0bfc46f 100644
--- a/app/core/gimp-spawn.c
+++ b/app/core/gimp-spawn.c
@@ -36,6 +36,8 @@
 #include "gimp-intl.h"
 
 
+#ifdef HAVE_VFORK
+
 /* copied from glib */
 static gint
 exec_err_to_g_error (gint en)
@@ -144,6 +146,8 @@ exec_err_to_g_error (gint en)
     }
 }
 
+#endif /* HAVE_VFORK */
+
 gboolean
 gimp_spawn_async (gchar       **argv,
                   gchar       **envp,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]