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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev