All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH] xf86-video-intel: Unbreak build on OpenBSD
Date: Sat, 15 Feb 2014 21:29:42 +0100 (CET)	[thread overview]
Message-ID: <201402152029.s1FKTgQk017457@glazunov.sibelius.xs4all.nl> (raw)

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;

             reply	other threads:[~2014-02-15 20:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-15 20:29 Mark Kettenis [this message]
2014-02-18  8:06 ` [PATCH] xf86-video-intel: Unbreak build on OpenBSD Chris Wilson
2014-02-18 18:55   ` Mark Kettenis
2014-02-18 19:05     ` Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201402152029.s1FKTgQk017457@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.