summaryrefslogtreecommitdiffstats
path: root/package/mesa3d
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2018-06-16 23:39:18 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-06-17 14:02:03 +0200
commita5ff91f36e3b0c4aa475b9e30a9ccdff6178e9ec (patch)
tree9e3fc4dfc932a69aed2a24d9e4f70dd14ec2ec56 /package/mesa3d
parentf155bb619f99fe1586f5b71af2abd79632fd44cc (diff)
downloadbuildroot-a5ff91f36e3b0c4aa475b9e30a9ccdff6178e9ec.tar.gz
buildroot-a5ff91f36e3b0c4aa475b9e30a9ccdff6178e9ec.zip
package/mesa3d: fix musl build error
Fixes http://autobuild.buildroot.net/results/ccd/ccd07150e459b2b2caba6e561ecc6eae60c83ef5/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/mesa3d')
-rw-r--r--package/mesa3d/0003-musl-time-h.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/mesa3d/0003-musl-time-h.patch b/package/mesa3d/0003-musl-time-h.patch
new file mode 100644
index 0000000000..811d135622
--- /dev/null
+++ b/package/mesa3d/0003-musl-time-h.patch
@@ -0,0 +1,33 @@
+From 3c288da5eec81ee58b85927df18d9194ead8f5c2 Mon Sep 17 00:00:00 2001
+From: Ross Burton <ross.burton@intel.com>
+Date: Tue, 12 Jun 2018 11:59:01 +0100
+Subject: drivers/dri/i965: add missing #include
+
+brw_bufmgr.h uses time_t without include time.h, so the build fails under musl.
+
+Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
+
+Downloaded from upstream commit
+https://cgit.freedesktop.org/mesa/mesa/commit/src/mesa/drivers/dri/i965/brw_bufmgr.h?id=3c288da5eec81ee58b85927df18d9194ead8f5c2
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ src/mesa/drivers/dri/i965/brw_bufmgr.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h
+index 8cdf944..32fc7a5 100644
+--- a/src/mesa/drivers/dri/i965/brw_bufmgr.h
++++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h
+@@ -37,6 +37,8 @@
+ #include <stdbool.h>
+ #include <stdint.h>
+ #include <stdio.h>
++#include <time.h>
++
+ #include "util/u_atomic.h"
+ #include "util/list.h"
+
+--
+cgit v1.1
+
OpenPOWER on IntegriCloud