Files
haikuports/dev-util/cmocka/patches/cmocka-1.1.2.patchset
Jerome Duval e4d7930dea cmocka: cmocka.h is used by third parties.
simply include stdint.h.
2018-09-26 13:40:18 +02:00

26 lines
683 B
Plaintext

From 03068c5e137d36dfa35e6f9d3e08cf553883a15c Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 26 Sep 2018 13:33:44 +0200
Subject: [PATCH] Haiku: include sdint.h to define uintptr_t.
---
include/cmocka.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/cmocka.h b/include/cmocka.h
index e6861c8..32a651a 100644
--- a/include/cmocka.h
+++ b/include/cmocka.h
@@ -117,6 +117,8 @@ typedef uintmax_t LargestIntegralType;
typedef unsigned int uintptr_t;
# elif defined(_WIN64)
typedef unsigned long int uintptr_t
+# elif defined(__HAIKU__)
+ #include <stdint.h>
# else /* _WIN32 */
/* ILP32 and LP64 platforms */
--
2.18.0