[PATCH 10/22] Provide c_caddr_t via <sys/types.h>
Sebastian Huber
sebastian.huber@embedded-brains.de
Mon Apr 18 13:31:00 GMT 2016
Provide c_caddr_t via <sys/types.h> if __BSD_VISIBLE for BSD
compatibility.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
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 9423eb6..3cbed2c 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -79,6 +79,8 @@ struct cap_rights;
typedef struct cap_rights cap_rights_t;
#endif
+typedef const char * c_caddr_t; /* core address, pointer to const */
+
#ifndef _IN_ADDR_T_DECLARED
typedef __uint32_t in_addr_t; /* base type for internet address */
#define _IN_ADDR_T_DECLARED
--
1.8.4.5
More information about the Newlib
mailing list