Skip to content

util: Fix compiling set_dmabuf_name() using older kernel headers

Dmitry Osipenko requested to merge digetx/virglrenderer:fix-set_dmabuf_name into main

The DMA_BUF_SET_NAME_B ioctl isn't defined in older versions of kernel'sdma-buf.h and compilation fails in that case. Check whether ioctl is defined rather than header file presents to fix the build issue reported on !1330 (comment 2360461)

Cc: @pepp @theofficialgman

Edited by Dmitry Osipenko

Merge request reports

Loading