Doesn't build on non-linux architecture
Hello,
Mutter doesn't build on non-linux architectures due to the use of linux-only headers:
[27/443] cc -Icogl/cogl/libmutter-cogl-7.so.0.0.0.p -Icogl/cogl -I../cogl/cogl -Icogl -I../cogl -I/usr/include/glib-2.0 -I/usr/lib/x86_64-kfreebsd-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-kfreebsd-gnu/graphene-1.0/include -I/usr/include/libdrm -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -fvisibility=hidden -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -mfpmath=sse -msse -msse2 '-DCOGL_LOCALEDIR="/usr/share/locale"' -DCOGL_COMPILATION '-DCOGL_GL_LIBNAME="libGL.so.1"' '-DCOGL_GLES2_LIBNAME="libGLESv2.so.2"' -MD -MQ cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o -MF cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o.d -o cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o -c ../cogl/cogl/cogl-dma-buf-handle.c
FAILED: cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o
cc -Icogl/cogl/libmutter-cogl-7.so.0.0.0.p -Icogl/cogl -I../cogl/cogl -Icogl -I../cogl -I/usr/include/glib-2.0 -I/usr/lib/x86_64-kfreebsd-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-kfreebsd-gnu/graphene-1.0/include -I/usr/include/libdrm -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -fvisibility=hidden -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -mfpmath=sse -msse -msse2 '-DCOGL_LOCALEDIR="/usr/share/locale"' -DCOGL_COMPILATION '-DCOGL_GL_LIBNAME="libGL.so.1"' '-DCOGL_GLES2_LIBNAME="libGLESv2.so.2"' -MD -MQ cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o -MF cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o.d -o cogl/cogl/libmutter-cogl-7.so.0.0.0.p/cogl-dma-buf-handle.c.o -c ../cogl/cogl/cogl-dma-buf-handle.c
../cogl/cogl/cogl-dma-buf-handle.c:39:10: fatal error: linux/dma-buf.h: No such file or directory
39 | #include <linux/dma-buf.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Is mutter supposed to build on other OS?