From 54a1f60077aaee97ac59921c813a2ca2f9a5fc58 Mon Sep 17 00:00:00 2001 From: Tim Mooney Date: Fri, 14 Jan 2022 23:42:27 -0600 Subject: [PATCH] v4l2: include on Illumos Needed for _IOR/_IORW Part-of: --- .../gst-plugins-bad/sys/v4l2codecs/linux/types-compat.h | 5 +++++ subprojects/gst-plugins-good/sys/v4l2/ext/types-compat.h | 5 +++++ 2 files changed, 10 insertions(+) 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__