compositor: move libudev.h to evdev.h
authorPekka Paalanen <ppaalanen@gmail.com>
Fri, 30 Mar 2012 12:20:23 +0000 (15:20 +0300)
committerPekka Paalanen <ppaalanen@gmail.com>
Tue, 17 Apr 2012 11:33:30 +0000 (14:33 +0300)
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 <ppaalanen@gmail.com>
src/compositor.h
src/evdev.h
src/tty.c

index 8fc5ab0..045c8ac 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef _WAYLAND_SYSTEM_COMPOSITOR_H_
 #define _WAYLAND_SYSTEM_COMPOSITOR_H_
 
-#include <libudev.h>
 #include <pixman.h>
 #include <wayland-server.h>
 
index 4e29814..b05c855 100644 (file)
@@ -20,6 +20,8 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <libudev.h>
+
 void
 evdev_add_devices(struct udev *udev, struct weston_input_device
                  *input_base);
index 4c57dbc..78d5ba5 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -31,6 +31,8 @@
 #include <linux/vt.h>
 #include <linux/major.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 
 #include "compositor.h"