diff options
author | Owain G. Ainsworth <oga@openbsd.org> | 2009-01-13 17:02:59 +0000 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-01-15 09:46:35 +0800 |
commit | e84f21db824b2e9e7fe660927ecfbbf04b068f7a (patch) | |
tree | 9b79a371cc16139cb0b4f94b4795b19dd018e20b | |
parent | 70ba6d45c9a00756e0ad36a58136281adba138f9 (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)
-rw-r--r-- | src/i830_driver.c | 4 |
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; } |