summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2017-10-03 10:31:16 -0500
committerGeorge Kyriazis <[email protected]>2017-10-03 11:50:48 -0500
commita8e4a0f609c602010169ad88567496d96bee9690 (patch)
tree5cc95e5f85f877b1b2493c61d9deeb4880da4e6a
parent2d4b57fc3ed1e2daf66deb769bae3136af02399a (diff)
gallium/u_tests: fix ifdef for sync_file fences
include libsync.h only when libdrm is compiled in Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/auxiliary/util/u_tests.c2
1 files changed, 1 insertions, 1 deletions
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 <libsync.h>
#else
#define sync_merge(str, fd1, fd2) (-1)