Mesa (master): loader: don't limit the non-udev path to only android

Emil Velikov evelikov at kemper.freedesktop.org
Sat Apr 5 13:08:53 UTC 2014


Module: Mesa
Branch: master
Commit: 380f05ccc305bad7568ce19ea7e27cae39998d08
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=380f05ccc305bad7568ce19ea7e27cae39998d08

Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Wed Mar 19 01:59:16 2014 +1100

loader: don't limit the non-udev path to only android

Platforms that lack libudev (OpenBSD and possibly others) need
this change in order to load the correct dri driver.
Under linux we unconditionally require libudev, thus this code
will never get build.

v2: Add commit message (Emil Velikov)

Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

---

 src/loader/loader.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/loader/loader.c b/src/loader/loader.c
index 01b4f3a..666d015 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -202,7 +202,7 @@ out:
    return (*chip_id >= 0);
 }
 
-#elif defined(ANDROID) && !defined(__NOT_HAVE_DRM_H)
+#elif !defined(__NOT_HAVE_DRM_H)
 
 /* for i915 */
 #include <i915_drm.h>




More information about the mesa-commit mailing list