summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdrm/xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 74b6aa43..4759e0fe 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -78,7 +78,7 @@ extern unsigned long _bus_base(void);
#include "xf86drm.h"
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define DRM_MAJOR 145
#endif