--- a/src/via_driver.c +++ b/src/via_driver.c @@ -49,6 +49,8 @@ #ifdef HAVE_DRI #include "dri.h" +#else +#include "drm_fourcc.h" #endif /* RandR support */ --- a/src/via_memmgr.c +++ b/src/via_memmgr.c @@ -37,6 +37,8 @@ #include "via_driver.h" #ifdef HAVE_DRI #include "via_drm.h" +#else +#include "drm_fourcc.h" #endif /*