mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 01:20:11 +01:00
xf86drm: correct the OpenBSD DRM_MAJOR define
As far as I can tell no OpenBSD platform ever used 81 for a drm major. While the value was added to libdrm in 2003 or earlier drm didn't appear in OpenBSD till 2007. Of the OpenBSD platforms that support drm amd64/macppc/sparc64 use a major of 87, i386 uses 88. v2: rearrange ifdefs as suggested by Emil. Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
1d3b823650
commit
66c3afb75f
1 changed files with 7 additions and 3 deletions
10
xf86drm.c
10
xf86drm.c
|
|
@ -72,9 +72,13 @@
|
|||
#define DRM_MAJOR 34
|
||||
#endif
|
||||
|
||||
# ifdef __OpenBSD__
|
||||
# define DRM_MAJOR 81
|
||||
# endif
|
||||
#ifdef __OpenBSD__
|
||||
#ifdef __i386__
|
||||
#define DRM_MAJOR 88
|
||||
#else
|
||||
#define DRM_MAJOR 87
|
||||
#endif
|
||||
#endif /* __OpenBSD__ */
|
||||
|
||||
#ifndef DRM_MAJOR
|
||||
#define DRM_MAJOR 226 /* Linux */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue