gallium/u_tests: fix ifdef for sync_file fences
include libsync.h only when libdrm is compiled in Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
2d4b57fc3e
commit
a8e4a0f609
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue