diff mbox series

[v2,1/2] glib-compat: Define g_spawn_check_wait_status()

Message ID 20250104-glib-v2-1-12013f3e5782@daynix.com (mailing list archive)
State New
Headers show
Series tap: Use g_spawn_sync() and g_spawn_check_wait_status() | expand

Commit Message

Akihiko Odaki Jan. 4, 2025, 8:04 a.m. UTC
g_spawn_check_exit_status() is renamed to g_spawn_check_wait_status()
in 2.70.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
 include/glib-compat.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Daniel P. Berrangé Jan. 6, 2025, 9:22 a.m. UTC | #1
On Sat, Jan 04, 2025 at 05:04:07PM +0900, Akihiko Odaki wrote:
> g_spawn_check_exit_status() is renamed to g_spawn_check_wait_status()
> in 2.70.
> 
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> ---
>  include/glib-compat.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/glib-compat.h b/include/glib-compat.h
> index 86be439ba0ef..0bddb327bd5d 100644
> --- a/include/glib-compat.h
> +++ b/include/glib-compat.h
> @@ -68,6 +68,8 @@
>   * without generating warnings.
>   */
>  
> +#define g_spawn_check_wait_status g_spawn_check_exit_status

This needs to be conditionalized on !GLIB_CHECK_VERSION(2, 70, 0)


With regards,
Daniel
diff mbox series

Patch

diff --git a/include/glib-compat.h b/include/glib-compat.h
index 86be439ba0ef..0bddb327bd5d 100644
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -68,6 +68,8 @@ 
  * without generating warnings.
  */
 
+#define g_spawn_check_wait_status g_spawn_check_exit_status
+
 /*
  * g_memdup2_qemu:
  * @mem: (nullable): the memory to copy.