nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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/util/rand_xor.c.orig 2017-06-20 00:38:57.199474067 +0200
13+++ ./src/util/rand_xor.c 2017-06-20 00:40:31.351279557 +0200
14@@ -23,7 +23,9 @@
15 */
16
17 #if defined(__linux__)
18+#include <sys/types.h>
19 #include <sys/file.h>
20+#include <sys/stat.h>
21 #include <unistd.h>
22 #include <fcntl.h>
23 #else
24--- ./src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
25+++ ./src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
26@@ -28,6 +28,8 @@
27 #ifndef RADV_AMDGPU_WINSYS_H
28 #define RADV_AMDGPU_WINSYS_H
29
30+#include <sys/types.h>
31+
32 #include "radv_radeon_winsys.h"
33 #include "ac_gpu_info.h"
34 #include "addrlib/addrinterface.h"<Paste>