Skip to content

Commit

Permalink
Define DRM_MAJOR in one more libdrm copy after 6cafa0b
Browse files Browse the repository at this point in the history
In file included from cmrtlib/linux/hardware/cm_device_os.cpp:24:
cmrtlib/linux/../linux/hardware/drm_device.h:254:19: error: use of undeclared identifier 'DRM_MAJOR'
    return maj == DRM_MAJOR;
                  ^
  • Loading branch information
jbeich committed Mar 15, 2020
1 parent 718ae1d commit 9488259
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cmrtlib/linux/hardware/drm_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,26 @@
#define MAP_FAILED ((void *)-1)
#endif

#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
#define DRM_MAJOR 145
#endif

#ifdef __NetBSD__
#define DRM_MAJOR 34
#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 */
#endif

#define DRM_DEV_UID 0
#define DRM_DEV_GID 0
/* Default /dev/dri directory permissions 0755 */
Expand Down

0 comments on commit 9488259

Please sign in to comment.