Mesa (master): loader: include <sys/stat.h> for non-sysfs builds
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Mar 16 21:00:53 UTC 2015
Module: Mesa
Branch: master
Commit: 771cd266b9d00bdcf2cf7acaa3c8363c358d7478
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=771cd266b9d00bdcf2cf7acaa3c8363c358d7478
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Wed Mar 11 19:12:35 2015 +0000
loader: include <sys/stat.h> for non-sysfs builds
Required by fstat(), otherwise we'll error out due to implicit function
declaration.
Cc: "10.4 10.5" <mesa-stable at lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89530
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reported-by: Vadim Rutkovsky <vrutkovs at redhat.com>
Tested-by: Vadim Rutkovsky <vrutkovs at redhat.com>
---
src/loader/loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 9ff5115..17bf133 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -64,6 +64,7 @@
* Rob Clark <robclark at 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"
More information about the mesa-commit
mailing list