From a8e4a0f609c602010169ad88567496d96bee9690 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Tue, 3 Oct 2017 10:31:16 -0500 Subject: [PATCH] gallium/u_tests: fix ifdef for sync_file fences MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit include libsync.h only when libdrm is compiled in Reviewed-by: Marek Olšák --- 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 2e931c0cd01..3cc79afcffd 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 #else #define sync_merge(str, fd1, fd2) (-1) -- 2.30.2