All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm.h: Handle DragonFly like Linux
@ 2016-05-14  7:13 François Tigeot
  2016-05-14 14:51 ` Emil Velikov
  0 siblings, 1 reply; 9+ messages in thread
From: François Tigeot @ 2016-05-14  7:13 UTC (permalink / raw)
  To: dri-devel; +Cc: François Tigeot

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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-05-17 13:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-14  7:13 [PATCH] drm.h: Handle DragonFly like Linux François Tigeot
2016-05-14 14:51 ` Emil Velikov
2016-05-16 16:24   ` Francois Tigeot
2016-05-16 22:02     ` Emil Velikov
2016-05-17  5:26       ` Francois Tigeot
2016-05-17  6:25         ` randyf
2016-05-17  7:15           ` Francois Tigeot
2016-05-17  7:48             ` randyf
2016-05-17 13:58         ` Ed Maste

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.