diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-03-02 17:33:17 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-04 22:00:02 -0500 |
commit | 4ac32ab669141ebb74a5ffc1c01f7f70fd568852 (patch) | |
tree | 09bd808d91949b50d155000a7f2c0750b1595fd6 | |
parent | 0b5cd0cb4c367411cce1f6d3a8700b2c241e460e (diff) |
compositor-drm: fix libbacklight build
Bad inclusion of DRM headers, missing some system headers.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
-rw-r--r-- | src/libbacklight.c | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/src/libbacklight.c b/src/libbacklight.c index b2e19bf..37f4bcc 100644 --- a/src/libbacklight.c +++ b/src/libbacklight.c @@ -31,33 +31,18 @@ #define _GNU_SOURCE -#include <libbacklight.h> +#include "libbacklight.h" #include <stdio.h> +#include <stdlib.h> +#include <unistd.h> #include <linux/types.h> #include <dirent.h> -#include <drm/drm_mode.h> +#include <drm.h> #include <fcntl.h> #include <malloc.h> #include <string.h> #include <errno.h> -static const char *output_names[] = { "Unknown", - "VGA", - "DVI-I", - "DVI-D", - "DVI-A", - "Composite", - "SVIDEO", - "LVDS", - "Component", - "9-pin DIN", - "DisplayPort" - "HDMI Type A", - "HDMI Type B", - "TV", - "Embedded DisplayPort" -}; - static long backlight_get(struct backlight *backlight, char *node) { char buffer[100]; @@ -169,7 +154,7 @@ struct backlight *backlight_init(struct udev_device *drm_device, enum backlight_type type = 0; char buffer[100]; struct backlight *backlight; - int err, ret; + int ret; if (!drm_device) return NULL; |