Annotation of /trunk/mesa/patches/mesa-10.4.6-loader-fstat-fix-implicit-function-declaration.patch
Parent Directory | Revision Log
Revision 2701 -
(hide annotations)
(download)
Wed Sep 23 14:56:14 2015 UTC (9 years ago) by niro
File size: 1008 byte(s)
Wed Sep 23 14:56:14 2015 UTC (9 years ago) by niro
File size: 1008 byte(s)
-fix ftbfs
1 | niro | 2701 | From 771cd266b9d00bdcf2cf7acaa3c8363c358d7478 Mon Sep 17 00:00:00 2001 |
2 | From: Emil Velikov <emil.l.velikov@gmail.com> | ||
3 | Date: Wed, 11 Mar 2015 19:12:35 +0000 | ||
4 | Subject: loader: include <sys/stat.h> for non-sysfs builds | ||
5 | |||
6 | Required by fstat(), otherwise we'll error out due to implicit function | ||
7 | declaration. | ||
8 | |||
9 | Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org> | ||
10 | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89530 | ||
11 | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> | ||
12 | Reported-by: Vadim Rutkovsky <vrutkovs@redhat.com> | ||
13 | Tested-by: Vadim Rutkovsky <vrutkovs@redhat.com> | ||
14 | |||
15 | diff --git a/src/loader/loader.c b/src/loader/loader.c | ||
16 | index 9ff5115..17bf133 100644 | ||
17 | --- a/src/loader/loader.c | ||
18 | +++ b/src/loader/loader.c | ||
19 | @@ -64,6 +64,7 @@ | ||
20 | * Rob Clark <robclark@freedesktop.org> | ||
21 | */ | ||
22 | |||
23 | +#include <sys/stat.h> | ||
24 | #include <stdarg.h> | ||
25 | #include <stdio.h> | ||
26 | #include <string.h> | ||
27 | @@ -80,7 +81,6 @@ | ||
28 | #endif | ||
29 | #endif | ||
30 | #ifdef HAVE_SYSFS | ||
31 | -#include <sys/stat.h> | ||
32 | #include <sys/types.h> | ||
33 | #endif | ||
34 | #include "loader.h" | ||
35 | -- | ||
36 | cgit v0.10.2 | ||
37 |