summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa/0002-Add-prototypes-for-64bit-atomics-fallback.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/mesa/mesa/0002-Add-prototypes-for-64bit-atomics-fallback.patch')
-rw-r--r--recipes-graphics/mesa/mesa/0002-Add-prototypes-for-64bit-atomics-fallback.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/recipes-graphics/mesa/mesa/0002-Add-prototypes-for-64bit-atomics-fallback.patch b/recipes-graphics/mesa/mesa/0002-Add-prototypes-for-64bit-atomics-fallback.patch
deleted file mode 100644
index 5c05607..0000000
--- a/recipes-graphics/mesa/mesa/0002-Add-prototypes-for-64bit-atomics-fallback.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From b919db72e6f1b1d98d0c97f9919b7593af11d0ae Mon Sep 17 00:00:00 2001
2From: Jan Beich <jbeich@freebsd.org>
3Date: Sat, 13 May 2017 11:21:12 +0200
4Subject: [PATCH 2/2] Add prototypes for 64bit atomics fallback
5
6u_atomic.c:67:1: error: no previous prototype for function '__atomic_fetch_add_8'
7 [-Werror,-Wmissing-prototypes]
8__atomic_fetch_add_8(uint64_t *ptr, uint64_t val, int memorder)
9^
10u_atomic.c:73:1: error: no previous prototype for function '__atomic_fetch_sub_8'
11 [-Werror,-Wmissing-prototypes]
12__atomic_fetch_sub_8(uint64_t *ptr, uint64_t val, int memorder)
13^
142 errors generated.
15
16Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
17---
18 src/util/u_atomic.c | 8 ++++++++
19 1 file changed, 8 insertions(+)
20
21diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c
22index 691c34cf30..ce600aeeed 100644
23--- a/src/util/u_atomic.c
24+++ b/src/util/u_atomic.c
25@@ -34,6 +34,14 @@
26
27 static pthread_mutex_t sync_mutex = PTHREAD_MUTEX_INITIALIZER;
28
29+#ifdef USE_GCC_ATOMIC_BUILTINS
30+uint64_t __atomic_fetch_add_8(uint64_t *ptr, uint64_t val, int memorder);
31+uint64_t __atomic_fetch_sub_8(uint64_t *ptr, uint64_t val, int memorder);
32+#else
33+uint64_t __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val);
34+uint64_t __sync_sub_and_fetch_8(uint64_t *ptr, uint64_t val);
35+#endif
36+
37 #ifndef USE_GCC_ATOMIC_BUILTINS
38 WEAK uint64_t
39 __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
40--
412.14.1
42