summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-12-23 13:56:23 -0500
committerRobert Noland <rnoland@2hip.net>2008-12-23 13:56:23 -0500
commit58d557c73b9e4ad1964fd083abeec74875c141cb (patch)
tree76f5dc79aa1d82583414d88ab69e2224c2e23f30
parentb48bd3a036efa3c3aa759759a5be4f80f1c3ac72 (diff)
[FreeBSD] Fix build on FreeBSD after modesetting import.
l---------bsd-core/drm_mode.h1
-rw-r--r--shared-core/drm_mode.h2
2 files changed, 3 insertions, 0 deletions
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 <stdint.h>
#else
#include <linux/kernel.h>
#endif
+#endif
#define DRM_DISPLAY_INFO_LEN 32
#define DRM_CONNECTOR_NAME_LEN 32