diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/types-compat.h b/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/types-compat.h index e2502f3bd8..a65a3384ce 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/types-compat.h +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/linux/types-compat.h @@ -40,6 +40,11 @@ # endif #endif +#if defined(__sun) +/* for _IOR/_IORW on Illumos distros */ +#include +#endif + #ifndef __bitwise # ifdef __CHECK_ENDIAN__ # define __bitwise __bitwise__ diff --git a/subprojects/gst-plugins-good/sys/v4l2/ext/types-compat.h b/subprojects/gst-plugins-good/sys/v4l2/ext/types-compat.h index e2502f3bd8..a65a3384ce 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/ext/types-compat.h +++ b/subprojects/gst-plugins-good/sys/v4l2/ext/types-compat.h @@ -40,6 +40,11 @@ # endif #endif +#if defined(__sun) +/* for _IOR/_IORW on Illumos distros */ +#include +#endif + #ifndef __bitwise # ifdef __CHECK_ENDIAN__ # define __bitwise __bitwise__