pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cmocka Assume that C99 platforms have uintptr_t....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8b9405fd6d7a
branches:  trunk
changeset: 649068:8b9405fd6d7a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 31 15:13:06 2015 +0000

description:
Assume that C99 platforms have uintptr_t. Fixes build on ARM.

diffstat:

 devel/cmocka/distinfo                          |   3 ++-
 devel/cmocka/patches/patch-.._include_cmocka.h |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r fae70e57a934 -r 8b9405fd6d7a devel/cmocka/distinfo
--- a/devel/cmocka/distinfo     Tue Mar 31 15:11:16 2015 +0000
+++ b/devel/cmocka/distinfo     Tue Mar 31 15:13:06 2015 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2015/02/27 04:23:43 manu Exp $
+$NetBSD: distinfo,v 1.2 2015/03/31 15:13:06 joerg Exp $
 
 SHA1 (cmocka-1.0.0.tar.xz) = c1b6bdab164b2d54c26edacef9b9308e4de154f9
 RMD160 (cmocka-1.0.0.tar.xz) = e8e79a9cd50aff9af814d0804066c92d53f1cc88
 Size (cmocka-1.0.0.tar.xz) = 184016 bytes
+SHA1 (patch-.._include_cmocka.h) = 3aefedc23752eb5cf0fe2b7b43018b7e006bc0e8
diff -r fae70e57a934 -r 8b9405fd6d7a devel/cmocka/patches/patch-.._include_cmocka.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cmocka/patches/patch-.._include_cmocka.h    Tue Mar 31 15:13:06 2015 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-.._include_cmocka.h,v 1.1 2015/03/31 15:13:06 joerg Exp $
+
+--- ../include/cmocka.h.orig   2015-03-25 16:04:39.000000000 +0000
++++ ../include/cmocka.h
+@@ -100,6 +100,11 @@ typedef uintmax_t LargestIntegralType;
+     ((LargestIntegralType)(value))
+ 
+ /* Smallest integral type capable of holding a pointer. */
++#if (__STDC_VERSION__ - 0 >= 199901L) && !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED)
++# include <stdint.h>
++# define _UINTPTR_T
++# define _UINTPTR_T_DEFINED
++#endif
+ #if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED)
+ # if defined(_WIN32)
+     /* WIN32 is an ILP32 platform */



Home | Main Index | Thread Index | Old Index