intptr_t and uintptr_t are defined as int and unsigned int on OS/2
kLIBC, respectively.

This fixes a type conflict of sbrk() on OS/2 kLIBC.

* lib/stdint.in.h (gl_intptr_t, gl_uintptr_t): typedef to int and
unsigned int on OS/2 kLIBC, repsectively.
---
 lib/stdint.in.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/stdint.in.h b/lib/stdint.in.h
index 98ee423..7b1ef16 100644
--- a/lib/stdint.in.h
+++ b/lib/stdint.in.h
@@ -290,8 +290,13 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
 
 #undef intptr_t
 #undef uintptr_t
+#ifndef __KLIBC__
 typedef long int gl_intptr_t;
 typedef unsigned long int gl_uintptr_t;
+#else
+typedef int gl_intptr_t;
+typedef unsigned int gl_uintptr_t;
+#endif
 #define intptr_t gl_intptr_t
 #define uintptr_t gl_uintptr_t
 
-- 
1.8.5.2


Reply via email to