[PATCH spice-server] test-glib-compat: Fix G_PID_FORMAT definition for old systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]