commit ea4eccb
nia
·
2020-02-20 13:13:33 +0000 UTC
parent 393f20c
drm: Check if major() gets defined in sys/types.h before including sys/sysmacros.h
1 files changed,
+3,
-0
M
drm.c
M
drm.c
+3,
-0
1@@ -24,7 +24,10 @@
2 #include "drm.h"
3 #include "drm-private.h"
4
5+#include <sys/types.h>
6+#ifndef major
7 #include <sys/sysmacros.h>
8+#endif
9
10 const static struct drm_driver *drivers[] = {
11 #if WITH_DRM_INTEL