From 4fbce7e462ab488fc11037adb571bb3a807459ba Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 18 Jun 2015 10:38:04 +0100 Subject: testdisplay_hotplug: Add missing #include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit testdisplay_hotplug.c: In function ‘hotplug_event’: testdisplay_hotplug.c:46:14: error: storage size of ‘s’ isn’t known struct stat s; ^ testdisplay_hotplug.c:54:2: error: implicit declaration of function ‘fstat’ [-Werror=implicit-function-declaration] fstat(drm_fd, &s); ^ testdisplay_hotplug.c:54:2: warning: nested extern declaration of ‘fstat’ [-Wnested-externs] testdisplay_hotplug.c:46:14: warning: unused variable ‘s’ [-Wunused-variable] struct stat s; ^ Signed-off-by: Chris Wilson --- tests/testdisplay_hotplug.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/testdisplay_hotplug.c') diff --git a/tests/testdisplay_hotplug.c b/tests/testdisplay_hotplug.c index 6e33ef31..0010a437 100644 --- a/tests/testdisplay_hotplug.c +++ b/tests/testdisplay_hotplug.c @@ -25,6 +25,8 @@ #include #include +#include + #include "testdisplay.h" #ifdef HAVE_CONFIG_H #include "config.h" -- cgit v1.2.3