[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 01/27] glib-compat: move G_SOURCE_CONTINUE/REMOVE the
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PULL 01/27] glib-compat: move G_SOURCE_CONTINUE/REMOVE there |
Date: |
Tue, 10 Oct 2017 19:10:56 +0200 |
Signed-off-by: Marc-André Lureau <address@hidden>
Acked-by: Philippe Mathieu-Daudé <address@hidden>
---
include/glib-compat.h | 7 +++++++
contrib/vhost-user-scsi/vhost-user-scsi.c | 8 --------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/include/glib-compat.h b/include/glib-compat.h
index e15aca2d40..c49cf87196 100644
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -356,5 +356,12 @@ g_test_add_data_func_full(const char *path,
}
#endif
+/* Small compat shim from glib 2.32 */
+#ifndef G_SOURCE_CONTINUE
+#define G_SOURCE_CONTINUE TRUE
+#endif
+#ifndef G_SOURCE_REMOVE
+#define G_SOURCE_REMOVE FALSE
+#endif
#endif
diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c
b/contrib/vhost-user-scsi/vhost-user-scsi.c
index b5ae02c96f..78bcc65f5a 100644
--- a/contrib/vhost-user-scsi/vhost-user-scsi.c
+++ b/contrib/vhost-user-scsi/vhost-user-scsi.c
@@ -17,14 +17,6 @@
#include <glib.h>
-/* Small compat shim from glib 2.32 */
-#ifndef G_SOURCE_CONTINUE
-#define G_SOURCE_CONTINUE TRUE
-#endif
-#ifndef G_SOURCE_REMOVE
-#define G_SOURCE_REMOVE FALSE
-#endif
-
/* #define VUS_DEBUG 1 */
/** Log helpers **/
--
2.15.0.rc0.40.gaefcc5f6f
- [Qemu-devel] [PULL 00/27] vhost-user patches, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 01/27] glib-compat: move G_SOURCE_CONTINUE/REMOVE there,
Marc-André Lureau <=
- [Qemu-devel] [PULL 03/27] build-sys: make vhost-user-scsi depend on libvhost-user.a, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 02/27] build-sys: fix libvhost-user.a build, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 05/27] libvhost-user: improve vu_queue_pop() doc, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 04/27] libvhost-user: drop dependency on glib, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 08/27] vhost-user-scsi: code style fixes, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 06/27] vhost-user-scsi: use g_strdup(), Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 07/27] vhost-user-scsi: connect unix socket before allocating, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 09/27] vhost-user-scsi: use glib allocation, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 10/27] vhost-user-scsi: glib calls that allocate don't return NULL, Marc-André Lureau, 2017/10/10
- [Qemu-devel] [PULL 11/27] vhost-user-scsi: also free the gtree, Marc-André Lureau, 2017/10/10