backlight.c: test for features

Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
This commit is contained in:
Patrick Welche
2015-01-26 12:25:40 +00:00
committed by Chris Wilson
parent 913afaf249
commit ac90648ec7
2 changed files with 3 additions and 1 deletions

View File

@@ -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>]]))

View File

@@ -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>