aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files/0007-dri-i965-Add-missing-time.h-include.patch
blob: e56d1588fda9964388b94658dfe69359ec7ac892 (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 9a25f6e7a0eb8825ab089fdd166dbaee778a4c81 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/7] 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: Pending
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.17.1