projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf2e11
)
egl_dri2: Use libudev only if available
author
Benjamin Franzke
<benjaminfranzke@googlemail.com>
Tue, 7 Jun 2011 19:59:02 +0000
(21:59 +0200)
committer
Alex Deucher
<alexdeucher@gmail.com>
Tue, 7 Jun 2011 21:58:47 +0000
(17:58 -0400)
Broken since
7f881c43dfb4f1aeeab3a84125b5c106c191a43f
.
src/egl/drivers/dri2/common.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/common.c
b/src/egl/drivers/dri2/common.c
index
1860a3f
..
38f5b25
100644
(file)
--- a/
src/egl/drivers/dri2/common.c
+++ b/
src/egl/drivers/dri2/common.c
@@
-1,16
+1,19
@@
#include <stdio.h>
#include <string.h>
-#include <libudev.h>
-
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "egl_dri2.h"
+
+#ifdef HAVE_LIBUDEV
+
#define DRIVER_MAP_DRI2_ONLY
#include "pci_ids/pci_id_driver_map.h"
+#include <libudev.h>
+
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 */