From 58d557c73b9e4ad1964fd083abeec74875c141cb Mon Sep 17 00:00:00 2001 From: Robert Noland Date: Tue, 23 Dec 2008 13:56:23 -0500 Subject: [FreeBSD] Fix build on FreeBSD after modesetting import. --- bsd-core/drm_mode.h | 1 + shared-core/drm_mode.h | 2 ++ 2 files changed, 3 insertions(+) create mode 120000 bsd-core/drm_mode.h diff --git a/bsd-core/drm_mode.h b/bsd-core/drm_mode.h new file mode 120000 index 00000000..a43f1385 --- /dev/null +++ b/bsd-core/drm_mode.h @@ -0,0 +1 @@ +../shared-core/drm_mode.h \ No newline at end of file diff --git a/shared-core/drm_mode.h b/shared-core/drm_mode.h index 601d2bd8..9b92733d 100644 --- a/shared-core/drm_mode.h +++ b/shared-core/drm_mode.h @@ -27,11 +27,13 @@ #ifndef _DRM_MODE_H #define _DRM_MODE_H +#ifdef __linux__ #if !defined(__KERNEL__) && !defined(_KERNEL) #include #else #include #endif +#endif #define DRM_DISPLAY_INFO_LEN 32 #define DRM_CONNECTOR_NAME_LEN 32 -- cgit v1.2.3