From b36563861e856d7ead6f5676461e0199b8cc9811 Mon Sep 17 00:00:00 2001
From: Heiko Stuebner <heiko@sntech.de>
Date: Thu, 2 Jul 2015 21:09:26 +0200
Subject: [PATCH] Add includes for fstat and struct stat

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@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

