Add includes for fstat and struct stat

A patch from »Add includes for fstat and struct stat« in state Mailinglist for xf86-video-armsoc

From: Heiko Stuebner <heiko@...> Date: Thu, 2 Jul 2015 21:09:26 +0200

Commit-Message

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

Patch-Comment

src/drmmode_display.c | 4 ++++ 1 file changed, 4 insertions(+)

Statistics

  • 4 lines added
  • 0 lines removed

Changes

---------------------------- src/drmmode_display.c -----------------------------
index 58c1a84..8e45b5f 100644
@@ -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"
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...