summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2009-01-13 17:02:59 +0000
committerZhenyu Wang <zhenyu.z.wang@intel.com>2009-01-15 09:46:35 +0800
commite84f21db824b2e9e7fe660927ecfbbf04b068f7a (patch)
tree9b79a371cc16139cb0b4f94b4795b19dd018e20b /src
parent70ba6d45c9a00756e0ad36a58136281adba138f9 (diff)
use ifdef __linux__ where needed.
since modesetting is compiled by default now, ifdef __linux__ the linux only includes and ioctls. (cherry picked from commit 1e8588ad5087c69eb77399cfaab8e4ec15eb4da9)
Diffstat (limited to 'src')
-rw-r--r--src/i830_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index beb134d6..4c40d40a 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1131,7 +1131,9 @@ i830SetHotkeyControl(ScrnInfoPtr pScrn, int mode)
* DRM mode setting Linux only at this point... later on we could
* add a wrapper here.
*/
+#ifdef __linux__
#include <linux/kd.h>
+#endif
static Bool i830_kernel_mode_enabled(ScrnInfoPtr pScrn)
{
@@ -1157,7 +1159,9 @@ static Bool i830_kernel_mode_enabled(ScrnInfoPtr pScrn)
if (ret)
return FALSE;
+#ifdef __linux__
ioctl(xf86Info.consoleFd, KDSETMODE, KD_TEXT);
+#endif
return TRUE;
}