1 diff -up libdrm-20080814/xf86drm.c.no-bc libdrm-20080814/xf86drm.c
2 --- libdrm-20080814/xf86drm.c.no-bc 2008-08-14 15:43:09.000000000 +1000
3 +++ libdrm-20080814/xf86drm.c 2008-08-14 15:45:09.000000000 +1000
4 @@ -396,11 +396,6 @@ int drmAvailable(void)
7 if ((fd = drmOpenMinor(0, 1, DRM_NODE_RENDER)) < 0) {
9 - /* Try proc for backward Linux compatibility */
10 - if (!access("/proc/dri/0", R_OK))
16 @@ -519,38 +514,6 @@ static int drmOpenByName(const char *nam
21 - /* Backward-compatibility /proc support */
22 - for (i = 0; i < 8; i++) {
23 - char proc_name[64], buf[512];
24 - char *driver, *pt, *devstring;
27 - sprintf(proc_name, "/proc/dri/%d/name", i);
28 - if ((fd = open(proc_name, 0, 0)) >= 0) {
29 - retcode = read(fd, buf, sizeof(buf)-1);
32 - buf[retcode-1] = '\0';
33 - for (driver = pt = buf; *pt && *pt != ' '; ++pt)
35 - if (*pt) { /* Device is next */
37 - if (!strcmp(driver, name)) { /* Match */
38 - for (devstring = ++pt; *pt && *pt != ' '; ++pt)
40 - if (*pt) { /* Found busid */
41 - return drmOpenByBusid(++pt);
42 - } else { /* No busid */
43 - return drmOpenDevice(strtol(devstring, NULL, 0),i, DRM_NODE_RENDER);