summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarico Xu <marico.xu@arm.com>2015-07-24 14:09:49 +0800
committerMarico Xu <marico.xu@arm.com>2015-07-24 10:45:48 +0100
commit25f588e2c4addb74ef0f730485878610073b6470 (patch)
treef926e793ecd367973aee9f731574a7ecd94fab4f
parent20c4a8872e3e557e9926985bbd3d856d7ecf3d10 (diff)
Fix build failure with xserver version 1.17
Due to the missing declarations of fstat and struct stat, Compiling against xservers in version 1.17 starts failing . Add the headers listed by man fstat to drmmode_display.c to fix this. Change-Id: I7c971b7ce7b8afb40f22d5807ec7191ed9fb4569
-rw-r--r--src/drmmode_display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 58c1a84..8e45b5f 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -32,6 +32,10 @@
#include "config.h"
#endif
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include "xf86DDC.h"
#include "xf86RandR12.h"