diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2015-07-21 03:12:10 +1000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-07-29 18:04:15 +0100 |
commit | 66c3afb75fa993f2f8b00c2dd9c2ec37a3a9dfb6 (patch) | |
tree | 8379cba1923f34ffd57c9e9540bc883f0da2c8d1 /xf86drm.c | |
parent | 1d3b823650bf980a48df00b748fef7cfc7c19b14 (diff) |
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>
Diffstat (limited to 'xf86drm.c')
-rw-r--r-- | xf86drm.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 */ |