From 9bc1a4ef9ef37d722893d32ca72d48f3baf3ec13 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 30 Mar 2012 15:20:23 +0300 Subject: [PATCH] compositor: move libudev.h to evdev.h Compositor core does not do anything with udev, so the header is not needed there. Move the #include into evdev.h, from where it gets used by compositor-drm.c, too. Also fix the fallout: tty.c: In function 'tty_create': tty.c:143:2: warning: implicit declaration of function 'fstat' Signed-off-by: Pekka Paalanen --- src/compositor.h | 1 - src/evdev.h | 2 ++ src/tty.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compositor.h b/src/compositor.h index 8fc5ab031..045c8aced 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -24,7 +24,6 @@ #ifndef _WAYLAND_SYSTEM_COMPOSITOR_H_ #define _WAYLAND_SYSTEM_COMPOSITOR_H_ -#include #include #include diff --git a/src/evdev.h b/src/evdev.h index 4e298149c..b05c855c0 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -20,6 +20,8 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include + void evdev_add_devices(struct udev *udev, struct weston_input_device *input_base); diff --git a/src/tty.c b/src/tty.c index 4c57dbc0f..78d5ba5db 100644 --- a/src/tty.c +++ b/src/tty.c @@ -31,6 +31,8 @@ #include #include #include +#include +#include #include "compositor.h"