1--- ./src/gallium/winsys/svga/drm/vmw_screen.h.orig
2+++ ./src/gallium/winsys/svga/drm/vmw_screen.h
3@@ -34,7 +34,7 @@
4 #ifndef VMW_SCREEN_H_
5 #define VMW_SCREEN_H_
6
7-
8+#include <sys/stat.h>
9 #include "pipe/p_compiler.h"
10 #include "pipe/p_state.h"
11
12--- ./src/gallium/state_trackers/nine/threadpool.h.orig 2015-05-07 14:10:53.443337212 +0200
13+++ ./src/gallium/state_trackers/nine/threadpool.h 2015-05-07 14:11:04.210307653 +0200
14@@ -24,6 +24,8 @@
15 #ifndef _THREADPOOL_H_
16 #define _THREADPOOL_H_
17
18+#include <pthread.h>
19+
20 #define MAXTHREADS 1
21
22 struct threadpool {
23--- ./src/util/rand_xor.c.orig 2017-06-20 00:38:57.199474067 +0200
24+++ ./src/util/rand_xor.c 2017-06-20 00:40:31.351279557 +0200
25@@ -23,7 +23,9 @@
26 */
27
28 #if defined(__linux__)
29+#include <sys/types.h>
30 #include <sys/file.h>
31+#include <sys/stat.h>
32 #include <unistd.h>
33 #include <fcntl.h>
34 #else
35--- ./src/mesa/drivers/dri/i965/brw_bufmgr.h
36+++ ./src/mesa/drivers/dri/i965/brw_bufmgr.h
37@@ -37,6 +37,7 @@
38 #include <stdbool.h>
39 #include <stdint.h>
40 #include <stdio.h>
41+#include <time.h>
42 #include "util/u_atomic.h"
43 #include "util/list.h"
44
45--- ./src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
46+++ ./src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
47@@ -28,6 +28,8 @@
48 #ifndef RADV_AMDGPU_WINSYS_H
49 #define RADV_AMDGPU_WINSYS_H
50
51+#include <sys/types.h>
52+
53 #include "radv_radeon_winsys.h"
54 #include "ac_gpu_info.h"
55 #include "addrlib/addrinterface.h"<Paste>