diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-07-21 21:07:19 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-23 14:41:49 +0200 |
commit | 1d41f2dec09f40882ba5ecc7423c353042c11342 (patch) | |
tree | 1b5ca68c3f8e0e78aefb94f41d8a11595bf9b44d /package/libdrm/0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch | |
parent | 52b06ebbcffd0905cf8cf26673453bd619194d3d (diff) | |
download | buildroot-1d41f2dec09f40882ba5ecc7423c353042c11342.tar.gz buildroot-1d41f2dec09f40882ba5ecc7423c353042c11342.zip |
package/libdrm: bump version to 2.4.69
Removed patch 0002, applied upstream:
https://cgit.freedesktop.org/mesa/drm/commit/xf86drm.c?id=4031dc17bb728850c9b079c8d5f9cc0a379b9d46
Renumbered patch 0003.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libdrm/0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch')
-rw-r--r-- | package/libdrm/0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/libdrm/0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch b/package/libdrm/0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch new file mode 100644 index 0000000000..ff920fb5a7 --- /dev/null +++ b/package/libdrm/0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch @@ -0,0 +1,32 @@ +From 7384f79f69fdb7b691cc5b0c28c301b3fe8b633e Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Thu, 26 May 2016 10:46:57 +0200 +Subject: [PATCH] xf86atomic: require CAS support in libatomic_ops + +Since AO_compare_and_swap_full() is used by libdrm, AO_REQUIRE_CAS +must be defined before including <atomic_ops.h> so that we are sure +that CAS support will be provided. This is necessary to make sure that +the AO_compare_and_swap_full() function will be provided on all +architectures, including the ones that don't have built-in CAS support +such as SPARCv8. + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + xf86atomic.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/xf86atomic.h b/xf86atomic.h +index 922b37d..d7017a5 100644 +--- a/xf86atomic.h ++++ b/xf86atomic.h +@@ -58,6 +58,7 @@ typedef struct { + #endif + + #if HAVE_LIB_ATOMIC_OPS ++#define AO_REQUIRE_CAS + #include <atomic_ops.h> + + #define HAS_ATOMIC_OPS 1 +-- +2.7.4 + |