From: George Kyriazis Date: Tue, 3 Oct 2017 15:31:16 +0000 (-0500) Subject: gallium/u_tests: fix ifdef for sync_file fences X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8e4a0f609c602010169ad88567496d96bee9690;p=mesa.git gallium/u_tests: fix ifdef for sync_file fences include libsync.h only when libdrm is compiled in Reviewed-by: Marek Olšák --- 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)