From patchwork Sat Feb 15 20:29:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Kettenis X-Patchwork-Id: 3656981 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1CA7A9F1EE for ; Sat, 15 Feb 2014 20:29:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47E5320176 for ; Sat, 15 Feb 2014 20:29:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E2F0E20172 for ; Sat, 15 Feb 2014 20:29:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BA00EFA3B3; Sat, 15 Feb 2014 12:29:46 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from glazunov.sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 75AC3FA3B3 for ; Sat, 15 Feb 2014 12:29:44 -0800 (PST) Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id s1FKThd7027697 for ; Sat, 15 Feb 2014 21:29:43 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id s1FKTgQk017457; Sat, 15 Feb 2014 21:29:42 +0100 (CET) Date: Sat, 15 Feb 2014 21:29:42 +0100 (CET) Message-Id: <201402152029.s1FKTgQk017457@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH] xf86-video-intel: Unbreak build on OpenBSD X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 #include +#include 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;