loader: don't limit the non-udev path to only android
authorJonathan Gray <jsg@jsg.id.au>
Tue, 18 Mar 2014 14:59:16 +0000 (01:59 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 5 Apr 2014 11:17:28 +0000 (12:17 +0100)
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@jsg.id.au>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/loader/loader.c

index 01b4f3a4c9aa32a4efc30142a47663fb032ae9bb..666d0158a179edbd772b7680c3cc406256cb18a7 100644 (file)
@@ -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>