[Mesa-dev] [PATCH] gallium/u_tests: fix ifdef for sync_file fences

George Kyriazis george.kyriazis at intel.com
Tue Oct 3 15:34:16 UTC 2017


include libsync.h only when libdrm is compiled in
---
 src/gallium/auxiliary/util/u_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c
index 2e931c0..3cc79af 100644
--- a/src/gallium/auxiliary/util/u_tests.c
+++ b/src/gallium/auxiliary/util/u_tests.c
@@ -490,7 +490,7 @@ null_fragment_shader(struct pipe_context *ctx)
    util_report_result(qresult.u64 == 2);
 }
 
-#ifdef PIPE_OS_LINUX
+#if defined(PIPE_OS_LINUX) && defined(HAVE_LIBDRM)
 #include <libsync.h>
 #else
 #define sync_merge(str, fd1, fd2) (-1)
-- 
2.7.4



More information about the mesa-dev mailing list