summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2009-01-13 17:02:59 +0000
committerEric Anholt <eric@anholt.net>2009-01-14 17:12:33 -0800
commit1e8588ad5087c69eb77399cfaab8e4ec15eb4da9 (patch)
tree23ce81fc8726fa7fde009c6d91287dab558358f7
parentdb9f5915ce812144ffd9d2aa42e8ba856129c35e (diff)
use ifdef __linux__ where needed.
since modesetting is compiled by default now, ifdef __linux__ the linux only includes and ioctls.
-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 3e27b07d..1ddea002 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1228,7 +1228,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)
{
@@ -1254,7 +1256,9 @@ static Bool i830_kernel_mode_enabled(ScrnInfoPtr pScrn)
if (ret)
return FALSE;
+#ifdef __linux__
ioctl(xf86Info.consoleFd, KDSETMODE, KD_TEXT);
+#endif
return TRUE;
}