chithanh 15/03/24 11:35:44 Added: mesa-10.5.1-fstat-include.patch Log: Apply patch to fix build problem, bug #543566. (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x2324E7B566DF2611!)
Revision Changes Path 1.1 media-libs/mesa/files/mesa-10.5.1-fstat-include.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/files/mesa-10.5.1-fstat-include.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/files/mesa-10.5.1-fstat-include.patch?rev=1.1&content-type=text/plain Index: mesa-10.5.1-fstat-include.patch =================================================================== >From 771cd266b9d00bdcf2cf7acaa3c8363c358d7478 Mon Sep 17 00:00:00 2001 From: Emil Velikov <[email protected]> Date: Wed, 11 Mar 2015 19:12:35 +0000 Subject: 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" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89530 Signed-off-by: Emil Velikov <[email protected]> Reported-by: Vadim Rutkovsky <[email protected]> Tested-by: Vadim Rutkovsky <[email protected]> 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 <[email protected]> */ +#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" -- cgit v0.10.2
