diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-06-18 10:38:04 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-06-18 10:38:47 +0100 |
commit | 4fbce7e462ab488fc11037adb571bb3a807459ba (patch) | |
tree | c07a71c56682a5c2a24a5ca176b586a77f122e2d | |
parent | c83299d1fda4b8c67562999d61817177d422d52e (diff) |
testdisplay_hotplug: Add missing #include <sys/stat.h>
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/testdisplay_hotplug.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <string.h> #include <stdlib.h> +#include <sys/stat.h> + #include "testdisplay.h" #ifdef HAVE_CONFIG_H #include "config.h" |