drm.h header includes 'sys/ioccom.h' for ioctl definitions on non-linux Unix platforms, but QNX seems to define those in 'sys/ioctl.h' instead.
Signed-off-by: Miguel A Vico Moya <mvicom...@nvidia.com> --- include/drm/drm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/drm/drm.h b/include/drm/drm.h index f0bd91de..ec0e1fd7 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -44,7 +44,12 @@ typedef unsigned int drm_handle_t; #else /* One of the BSDs */ +#if (defined(__QNX__) || defined(__QNXNTO__)) +#include <sys/ioctl.h> +#else #include <sys/ioccom.h> +#endif + #include <sys/types.h> typedef int8_t __s8; typedef uint8_t __u8; -- 2.15.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev