Skip to contentSkip to conversation

drm: make compiler include linux headers when compiling drm for managarm

PATCH New Alexander Richards 1 participant 1 message Jan 12, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: make compiler include linux headers when compiling drm for managarm

Managarm mainly follows the Linux ABI, and so needs to be in the Linux path when including needed headers here.

---
 include/uapi/drm/drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/drm/drm.h +1 -1
index de723566c..875499d8f 100644
@@ -41,7 +41,7 @@
 #include <asm/ioctl.h>
 typedef unsigned int drm_handle_t;
 
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__managarm__)
 
 #include <linux/types.h>
 #include <asm/ioctl.h>
Signature · 1 line
2.43.0