In cairo-xcb-screen.c line 130 include statement is #include <drm/drm.h> It should be replaced by #include <drm.h> On Gentoo this makes cairo-drm build, it fails with the original source. pkgconfig should give add the correct -I option.
xcb-drm was removed, together with this include. I guess this means that it still doesn't build, but this bug is certainly gone. http://cgit.freedesktop.org/cairo/commit/?id=507b8abcf6326bbbe8c188016043b21438256b71
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.