diff options
author | Stefan Reiff <kroko87@hotmail.com> | 2019-04-20 20:09:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-03 10:34:42 +0000 |
commit | 165ed7fca607c6196243385a7d2cdd1c2aef68f7 (patch) | |
tree | 76171d6e39970737490a90a7cf48c6d1f1f3c81f /main/cmocka/wordsize.patch | |
parent | 6561814333cbc5c5b120b144d84727848c98b3d2 (diff) | |
download | aports-165ed7fca607c6196243385a7d2cdd1c2aef68f7.tar.bz2 aports-165ed7fca607c6196243385a7d2cdd1c2aef68f7.tar.xz |
main/cmocka: upgrade to 1.1.5
Diffstat (limited to 'main/cmocka/wordsize.patch')
-rw-r--r-- | main/cmocka/wordsize.patch | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/main/cmocka/wordsize.patch b/main/cmocka/wordsize.patch index bd514018ba..816dc3fda0 100644 --- a/main/cmocka/wordsize.patch +++ b/main/cmocka/wordsize.patch @@ -1,16 +1,12 @@ -musl defines __WORDSIZE in bits/reg.h so include that. Also -error out on if it's not defined, otherwise we might get wrong -assumption which causes weird failures. - ---- cmocka-1.1.1.orig/include/cmocka.h -+++ cmocka-1.1.1/include/cmocka.h -@@ -55,12 +55,9 @@ +--- cmocka-1.1.5/include/cmocka.h.orig ++++ cmocka-1.1.5/include/cmocka.h +@@ -57,12 +57,9 @@ */ /* If __WORDSIZE is not set, try to figure it out and default to 32 bit. */ +#include <bits/reg.h> #ifndef __WORDSIZE --# if defined(__x86_64__) && !defined(__ILP32__) +-# if (defined(__x86_64__) && !defined(__ILP32__)) || defined(__sparc_v9__) || defined(__sparcv9) -# define __WORDSIZE 64 -# else -# define __WORDSIZE 32 |