[PATCH] xf86-video-intel: Unbreak build on OpenBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fallout from the backlight helper changes.

diff --git a/src/backlight.c b/src/backlight.c
index b04b5f7..adc3e94 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -59,7 +59,9 @@
 
 #ifdef __OpenBSD__
 
+#include <sys/ioctl.h>
 #include <dev/wscons/wsconsio.h>
+#include <xf86Priv.h>
 
 int backlight_set(struct backlight *b, int level)
 {
diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
index c7c2d7c..d5a702c 100644
--- a/src/uxa/intel_display.c
+++ b/src/uxa/intel_display.c
@@ -181,6 +181,8 @@ intel_output_backlight_get(xf86OutputPtr output)
 static void
 intel_output_backlight_init(xf86OutputPtr output)
 {
+	struct intel_output *intel_output = output->driver_private;
+
 #ifdef __OpenBSD__
 	intel_output->backlight_active_level =
 		backlight_init(&intel_output->backlight, NULL);
@@ -189,7 +191,6 @@ intel_output_backlight_init(xf86OutputPtr output)
 			   "found backlight control interface\n");
 	}
 #else
-	struct intel_output *intel_output = output->driver_private;
 	intel_screen_private *intel = intel_get_screen_private(output->scrn);
 	char *str;
 	int i;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux