[Xf86-video-armsoc] [PATCH] Add includes for fstat and struct stat

Heiko Stübner heiko at sntech.de
Wed Jul 22 15:07:57 PDT 2015


Compiling against xservers in version 1.17 starts failing because of
missing declarations of fstat and struct stat.
Add the headers listed by man fstat to drmmode_display.c to fix this.

Signed-off-by: Heiko Stuebner <heiko at sntech.de>
---
 src/drmmode_display.c | 4 ++++
 1 file changed, 4 insertions(+)

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"
 
-- 
2.1.4




More information about the Xf86-video-armsoc mailing list