diff --git a/src/egl/drivers/dri2/common.c b/src/egl/drivers/dri2/common.c index 1860a3f738e..38f5b257400 100644 --- a/src/egl/drivers/dri2/common.c +++ b/src/egl/drivers/dri2/common.c @@ -1,16 +1,19 @@ #include #include -#include - #include #include #include #include "egl_dri2.h" + +#ifdef HAVE_LIBUDEV + #define DRIVER_MAP_DRI2_ONLY #include "pci_ids/pci_id_driver_map.h" +#include + static struct udev_device * dri2_udev_device_new_from_fd(struct udev *udev, int fd) { @@ -109,3 +112,5 @@ out: return driver; } + +#endif /* HAVE_LIBUDEV */