From 688e584efe44ba2ffd5640e857b8be3d1b1c6bfa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 18 Feb 2019 09:39:02 +0100 Subject: [PATCH] Change register_t definition On 64-bit targets, the register_t type must be a 64-bit integer. Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index e5bd0294f..85f8ddb5f 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -36,7 +36,7 @@ typedef __uint32_t u_int32_t; #if ___int64_t_defined typedef __uint64_t u_int64_t; #endif -typedef int register_t; +typedef __intptr_t register_t; #define __BIT_TYPES_DEFINED__ 1 #ifndef __need_inttypes