summaryrefslogtreecommitdiff
path: root/user/cmocka/uintptr_t.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-14 11:00:15 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-14 11:00:15 +0000
commitcc1568a25d0551ed8b62ced5c267c6a4d34c10b8 (patch)
tree5943188716d0bededde97a966d9ca69624924062 /user/cmocka/uintptr_t.patch
parentd6a8ba9c4f2c0dc8dfc3a5892b3e447fbf68da42 (diff)
downloadpackages-cc1568a25d0551ed8b62ced5c267c6a4d34c10b8.tar.gz
packages-cc1568a25d0551ed8b62ced5c267c6a4d34c10b8.tar.bz2
packages-cc1568a25d0551ed8b62ced5c267c6a4d34c10b8.tar.xz
packages-cc1568a25d0551ed8b62ced5c267c6a4d34c10b8.zip
user/cmocka: New package
Diffstat (limited to 'user/cmocka/uintptr_t.patch')
-rw-r--r--user/cmocka/uintptr_t.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/cmocka/uintptr_t.patch b/user/cmocka/uintptr_t.patch
new file mode 100644
index 000000000..2950e3933
--- /dev/null
+++ b/user/cmocka/uintptr_t.patch
@@ -0,0 +1,25 @@
+--- cmocka-1.1.5/include/cmocka.h.old 2019-03-28 12:33:50.000000000 +0000
++++ cmocka-1.1.5/include/cmocka.h 2020-01-14 10:59:11.716464203 +0000
+@@ -123,21 +123,7 @@
+ # elif defined(_WIN64)
+ typedef unsigned long int uintptr_t;
+ # else /* _WIN32 */
+-
+-/* ILP32 and LP64 platforms */
+-# ifdef __WORDSIZE /* glibc */
+-# if __WORDSIZE == 64
+- typedef unsigned long int uintptr_t;
+-# else
+- typedef unsigned int uintptr_t;
+-# endif /* __WORDSIZE == 64 */
+-# else /* __WORDSIZE */
+-# if defined(_LP64) || defined(_I32LPx)
+- typedef unsigned long int uintptr_t;
+-# else
+- typedef unsigned int uintptr_t;
+-# endif
+-# endif /* __WORDSIZE */
++# include <stdint.h>
+ # endif /* _WIN32 */
+
+ # define _UINTPTR_T