hasl/hasl

Fix compiling against glib < 2.74.0

15 months ago, Gary Kramlich
1babe1d28563
Parents dfcacfd48174
Children 301cf2b34752
Fix compiling against glib < 2.74.0

Testing Done:
Ran the unittests and verified it worked fine against glib 2.74.0 and then bumped the version to make sure it redefined the value.

Reviewed at https://reviews.imfreedom.org/r/2269/
--- a/hasl/tests/test-context.c Thu Feb 23 21:16:43 2023 -0600
+++ b/hasl/tests/test-context.c Thu Feb 23 21:17:15 2023 -0600
@@ -19,6 +19,10 @@
#include <hasl.h>
+#if !GLIB_CHECK_VERSION(2, 74, 0)
+const int G_TEST_SUBPROCESS_DEFAULT = 0;
+#endif
+
/******************************************************************************
* Tests
*****************************************************************************/