https://github.com/intel/media-driver/pull/1785
Index: media_softlet/linux/common/os/i915/include/mos_bufmgr_priv.h
--- media_softlet/linux/common/os/i915/include/mos_bufmgr_priv.h.orig
+++ media_softlet/linux/common/os/i915/include/mos_bufmgr_priv.h
@@ -425,6 +425,10 @@ struct mos_bufmgr {
     uint64_t platform_information = 0;
 };
 
+#ifdef ALIGN
+/* <sys/param.h> via <pthread_np.h> on FreeBSD also defines ALIGN */
+#undef ALIGN
+#endif
 #define ALIGN(value, alignment)    ((value + alignment - 1) & ~(alignment - 1))
 #define ROUND_UP_TO(x, y)    (((x) + (y) - 1) / (y) * (y))
 #define ROUND_UP_TO_MB(x)    ROUND_UP_TO((x), 1024*1024)
