[PATCH] libc/sys/rtems/include/machine/_types.h: Define daddr_t to be 64 bits for RTEMS

Joel Sherrill <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
This type needs to be able to represent a position on a disk or
file system.
---
 newlib/libc/sys/rtems/include/machine/_types.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/machine/_types.h b/newlib/libc/sys/rtems/include/machine/_types.h
index 8e2d9a3ef..781142b7c 100644
--- a/newlib/libc/sys/rtems/include/machine/_types.h
+++ b/newlib/libc/sys/rtems/include/machine/_types.h
@@ -30,6 +30,9 @@ typedef	__uint64_t	_CLOCK_T_;
 typedef	int		_CLOCKID_T_;
 #define	__machine_clockid_t_defined
 
+typedef	__int64_t	daddr_t;
+#define __daddr_t_defined
+
 typedef	int		__accmode_t;	/* access permissions */
 typedef	__uint32_t	__fixpt_t;	/* fixed point number */
 typedef	int		__lwpid_t;	/* Thread ID (a.k.a. LWP) */
-- 
2.24.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.