From fabcdb3bd8c07fff03bc325a140df358c307855b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 27 Jul 2022 15:42:43 +0100 Subject: [PATCH] backports: Backport G_SPAWN_DEFAULT This makes the absence of flags a bit clearer to write. Signed-off-by: Simon McVittie --- glnx-backports.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glnx-backports.h b/glnx-backports.h index 0c5fabe9..3de9370f 100644 --- a/glnx-backports.h +++ b/glnx-backports.h @@ -64,6 +64,10 @@ gboolean glnx_set_object (GObject **object_ptr, #endif /* !GLIB_CHECK_VERSION(2, 44, 0) */ +#if !GLIB_CHECK_VERSION(2, 38, 0) +#define G_SPAWN_DEFAULT ((GSpawnFlags) 0) +#endif + #ifndef g_assert_nonnull #define g_assert_nonnull(x) g_assert (x != NULL) #endif