[virglrenderer-devel] [PATCH 04/11] renderer: broaden scope of HAVE_EVENTFD block

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Thu Mar 3 17:46:45 UTC 2016


From: Marc-André Lureau <marcandre.lureau at redhat.com>

To fix warnings on !eventfd systems

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 src/vrend_renderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index eca223a..a42a08f 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -3605,6 +3605,7 @@ static void vrend_free_sync_thread(void)
    pipe_mutex_destroy(vrend_state.fence_mutex);
 }
 
+#ifdef HAVE_EVENTFD
 static ssize_t
 write_full(int fd, const void *ptr, size_t count)
 {
@@ -3688,7 +3689,6 @@ static int thread_sync(void *arg)
    return 0;
 }
 
-#ifdef HAVE_EVENTFD
 static void vrend_renderer_use_threaded_sync(void)
 {
    struct virgl_gl_ctx_param ctx_params;
-- 
2.5.0



More information about the virglrenderer-devel mailing list