From: Emil Velikov Date: Wed, 11 Mar 2015 19:12:35 +0000 (+0000) Subject: loader: include for non-sysfs builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=771cd266b9d00bdcf2cf7acaa3c8363c358d7478;p=mesa.git loader: include for non-sysfs builds Required by fstat(), otherwise we'll error out due to implicit function declaration. Cc: "10.4 10.5" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89530 Signed-off-by: Emil Velikov Reported-by: Vadim Rutkovsky Tested-by: Vadim Rutkovsky --- diff --git a/src/loader/loader.c b/src/loader/loader.c index 9ff5115221f..17bf1336005 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -64,6 +64,7 @@ * Rob Clark */ +#include #include #include #include @@ -80,7 +81,6 @@ #endif #endif #ifdef HAVE_SYSFS -#include #include #endif #include "loader.h"