summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-07-27 15:42:43 +0100
committerSimon McVittie <smcv@collabora.com>2022-08-19 10:55:12 +0100
commitfabcdb3bd8c07fff03bc325a140df358c307855b (patch)
treefb56bb1761adad31ccdf702db30044a069f50db0
parent26375b5308360764bc6604f292192b88a59ad3ce (diff)
downloadlibglnx-fabcdb3bd8c07fff03bc325a140df358c307855b.tar.gz
backports: Backport G_SPAWN_DEFAULT
This makes the absence of flags a bit clearer to write. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--glnx-backports.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/glnx-backports.h b/glnx-backports.h
index 0c5fabe..3de9370 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