[newlib-cygwin] Define u_register_t if __BSD_VISIBLE

Sebastian Huber sh@sourceware.org
Tue Feb 19 08:07:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1d35a003fd0574dabdfda783f4b5a33ae512b058

commit 1d35a003fd0574dabdfda783f4b5a33ae512b058
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Mon Feb 18 09:41:13 2019 +0100

    Define u_register_t if __BSD_VISIBLE
    
    Add u_register_t definition for FreeBSD compatibility.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/include/sys/types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 85f8ddb..19e3de6 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -62,6 +62,8 @@ typedef	__uint32_t	in_addr_t;	/* base type for internet address */
 typedef	__uint16_t	in_port_t;
 #define	_IN_PORT_T_DECLARED
 #endif
+
+typedef	__uintptr_t	u_register_t;
 #endif /* __BSD_VISIBLE */
 
 #if __MISC_VISIBLE



More information about the Newlib-cvs mailing list