[PATCH] drm.h: Handle DragonFly like Linux
François Tigeot
ftigeot at wolfpond.org
Sat May 14 07:13:25 UTC 2016
The drm code in DragonFly uses a local Linux implementation which doesn't
define the __linux__ macro.
Use __DragonFly__ instead in order to not try to compile non-Linux code.
---
include/uapi/drm/drm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index a0ebfe7..76bea05 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -36,7 +36,7 @@
#ifndef _DRM_H_
#define _DRM_H_
-#if defined(__KERNEL__) || defined(__linux__)
+#if defined(__KERNEL__) || defined(__linux__) || defined(__DragonFly__)
#include <linux/types.h>
#include <asm/ioctl.h>
--
2.7.2
More information about the dri-devel
mailing list