From cc1568a25d0551ed8b62ced5c267c6a4d34c10b8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 14 Jan 2020 11:00:15 +0000 Subject: user/cmocka: New package --- user/cmocka/uintptr_t.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 user/cmocka/uintptr_t.patch (limited to 'user/cmocka/uintptr_t.patch') 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 + # endif /* _WIN32 */ + + # define _UINTPTR_T -- cgit v1.2.3-70-g09d2