loader: include <sys/stat.h> for non-sysfs builds
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 11 Mar 2015 19:12:35 +0000 (19:12 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Mar 2015 20:48:07 +0000 (20:48 +0000)
Required by fstat(), otherwise we'll error out due to implicit function
declaration.

Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89530
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reported-by: Vadim Rutkovsky <vrutkovs@redhat.com>
Tested-by: Vadim Rutkovsky <vrutkovs@redhat.com>
src/loader/loader.c

index 9ff5115221f3868af468195c53cc657a9066ed00..17bf13360057f11a43ce903e00f66261507c38bb 100644 (file)
@@ -64,6 +64,7 @@
  *    Rob Clark <robclark@freedesktop.org>
  */
 
+#include <sys/stat.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
@@ -80,7 +81,6 @@
 #endif
 #endif
 #ifdef HAVE_SYSFS
-#include <sys/stat.h>
 #include <sys/types.h>
 #endif
 #include "loader.h"