This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Add RTEMS-specific types for BSD compatibility


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

commit 8b6fc833307a635cff7139a65e2acaeea495d338
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Mon Apr 18 15:29:26 2016 +0200

    Add RTEMS-specific types for BSD compatibility
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/sys/rtems/include/machine/_types.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/machine/_types.h b/newlib/libc/sys/rtems/include/machine/_types.h
index ed09206..e5dece0 100644
--- a/newlib/libc/sys/rtems/include/machine/_types.h
+++ b/newlib/libc/sys/rtems/include/machine/_types.h
@@ -28,4 +28,10 @@ typedef	unsigned long	__ino_t;
 typedef	__uint32_t	__mode_t;
 #define	__machine_mode_t_defined
 
+#ifdef _KERNEL
+typedef	int		boolean_t;
+typedef	struct device	*device_t;
+typedef	char		vm_memattr_t;	/* memory attribute codes */
+#endif /* _KERNEL */
+
 #endif /* _MACHINE__TYPES_H */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]