[Spice-devel] [PATCH spice-server 01/23] test-glib-compat: Fix G_PID_FORMAT definition for old systems

Frediano Ziglio fziglio at redhat.com
Tue Jun 25 16:11:25 UTC 2019


The G_PID_FORMAT constant is defined only if GLib does not support it.
The constant was wrongly defined.
Jessie Debian 32 shows this issue (printf format error).

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/tests/test-glib-compat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/tests/test-glib-compat.h b/server/tests/test-glib-compat.h
index eef074948..17ebcf481 100644
--- a/server/tests/test-glib-compat.h
+++ b/server/tests/test-glib-compat.h
@@ -70,7 +70,7 @@ g_test_assert_expected_messages_internal_no_warnings(const char *domain,
 
 /* Added in glib 2.50 */
 #ifndef G_PID_FORMAT
-#ifdef G_OS_WIN32
+#ifndef G_OS_WIN32
 #define G_PID_FORMAT "i"
 #else
 #define G_PID_FORMAT "p"
-- 
2.20.1



More information about the Spice-devel mailing list