util: Fix compiling set_dmabuf_name() using older kernel headers
Compare changes
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
gitlab.freedesktop.org will be unavailable for up to a week starting March 16th, due to our ongoing infrastructure move. You can follow our planning tracker at https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/2076
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)