aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files/0007-dri-i965-Add-missing-time.h-include.patch
blob: 5b55b8a1fd09d33c147643254d4188144891c0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 23305c16e4444f5aa289f126f040ed061de292c0 Mon Sep 17 00:00:00 2001
From: Otavio Salvador <otavio@ossystems.com.br>
Date: Wed, 6 Jun 2018 09:50:35 -0300
Subject: [PATCH 7/8] dri: i965: Add missing time.h include
Organization: O.S. Systems Software LTDA.

This fixes a build error when using musl:

,----
| In file included from .../src/mesa/drivers/dri/i965/intel_upload.c:33:0:
| .../src/mesa/drivers/dri/i965/brw_bufmgr.h:132:4: error: unknown type name 'time_t'
|     time_t free_time;
|     ^~~~~~
`----

Upstream-Status: Backport [3c288da5eec81ee58b85927df18d9194ead8f5c2]
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 src/mesa/drivers/dri/i965/brw_bufmgr.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h
index 68f5e0c2c8..5b60a23763 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.h
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h
@@ -37,6 +37,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <time.h>
 #include "util/u_atomic.h"
 #include "util/list.h"
 
-- 
2.18.0