mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
backlight.c: test for features
Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
This commit is contained in:
committed by
Chris Wilson
parent
913afaf249
commit
ac90648ec7
@@ -398,6 +398,8 @@ AC_ARG_ENABLE(sna,
|
||||
[SNA="$enableval"],
|
||||
[SNA=auto])
|
||||
|
||||
AC_CHECK_HEADERS([dev/wscons/wsconsio.h])
|
||||
|
||||
if test "x$SNA" != "xno"; then
|
||||
AC_DEFINE(USE_SNA, 1, [Enable SNA support])
|
||||
AC_CHECK_HEADERS([sys/sysinfo.h], AC_CHECK_MEMBERS([struct sysinfo.totalram], [], [], [[#include <sys/sysinfo.h>]]))
|
||||
|
||||
@@ -84,7 +84,7 @@ void backlight_init(struct backlight *b)
|
||||
b->has_power = 0;
|
||||
}
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
#ifdef HAVE_DEV_WSCONS_WSCONSIO_H
|
||||
|
||||
#include <dev/wscons/wsconsio.h>
|
||||
#include <xf86Priv.h>
|
||||
|
||||
Reference in New Issue
Block a user