summaryrefslogtreecommitdiff
path: root/lib/libdrm
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-06-12 22:20:25 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-06-12 22:20:25 +0000
commit7f042b920dcac43488276d61940e79f0baece3ca (patch)
tree7065ee5b268ba2aa31d87a9cb75c67f84440f3aa /lib/libdrm
parent555e66fb1a4214d1044ec7f9d8a7623e67c3bba2 (diff)
change /dev/dri/card0 to /dev/drm0. Subdirs in /dev considered
irritating.
Diffstat (limited to 'lib/libdrm')
-rw-r--r--lib/libdrm/libdrm/xf86drm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libdrm/libdrm/xf86drm.h b/lib/libdrm/libdrm/xf86drm.h
index 34c9ec0e6..30dad41db 100644
--- a/lib/libdrm/libdrm/xf86drm.h
+++ b/lib/libdrm/libdrm/xf86drm.h
@@ -48,8 +48,13 @@
(S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
+#ifdef __OpenBSD__
+#define DRM_DIR_NAME "/dev"
+#define DRM_DEV_NAME "%s/drm%d"
+#else
#define DRM_DIR_NAME "/dev/dri"
#define DRM_DEV_NAME "%s/card%d"
+#endif
#define DRM_PROC_NAME "/proc/dri/" /* For backward Linux compatibility */
#define DRM_ERR_NO_DEVICE (-1001)