diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2023-07-07 11:27:30 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2023-07-07 11:27:30 +0200 |
commit | adcb06905c98be8260f94268016edb65e6cca037 (patch) | |
tree | 5a151edd0f1450a3018e5aa6fcda96a0ff074142 /sysutils | |
parent | e998b3a732e585b1a7a5d99840aec651bbddc2bd (diff) |
sysutils/libdrm: sync with xenocara base.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/libdrm/patches/patch-xf86drm_h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/libdrm/patches/patch-xf86drm_h b/sysutils/libdrm/patches/patch-xf86drm_h new file mode 100644 index 0000000..cd845fd --- /dev/null +++ b/sysutils/libdrm/patches/patch-xf86drm_h @@ -0,0 +1,22 @@ +Index: xf86drm.h +--- xf86drm.h.orig ++++ xf86drm.h +@@ -76,18 +76,11 @@ extern "C" { + (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_PRIMARY_MINOR_NAME "drm" +-#define DRM_CONTROL_MINOR_NAME "drmC" +-#define DRM_RENDER_MINOR_NAME "drmR" +-#else + #define DRM_DIR_NAME "/dev/dri" + #define DRM_PRIMARY_MINOR_NAME "card" + #define DRM_CONTROL_MINOR_NAME "controlD" + #define DRM_RENDER_MINOR_NAME "renderD" + #define DRM_PROC_NAME "/proc/dri/" /* For backward Linux compatibility */ +-#endif + + #define DRM_DEV_NAME "%s/" DRM_PRIMARY_MINOR_NAME "%d" + #define DRM_CONTROL_DEV_NAME "%s/" DRM_CONTROL_MINOR_NAME "%d" |