[rtems-libbsd commit] blist: Fix u_daddr_t for 32-bit targets

Sebastian Huber sebh at rtems.org
Tue Nov 27 08:14:04 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    8d5fc9d52ad34a664420b98c253375b1e62d0090
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=8d5fc9d52ad34a664420b98c253375b1e62d0090

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 27 09:07:53 2018 +0100

blist: Fix u_daddr_t for 32-bit targets

The daddr_t is defined in <sys/types.h> by Newlib as long.

---

 freebsd/sys/sys/blist.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/freebsd/sys/sys/blist.h b/freebsd/sys/sys/blist.h
index 595d347..1e6deb5 100644
--- a/freebsd/sys/sys/blist.h
+++ b/freebsd/sys/sys/blist.h
@@ -58,7 +58,11 @@
 #ifndef _SYS_BLIST_H_
 #define _SYS_BLIST_H_
 
+#ifndef __rtems__
 typedef	uint64_t	u_daddr_t;	/* unsigned disk address */
+#else /* __rtems__ */
+typedef	unsigned long	u_daddr_t;	/* unsigned disk address */
+#endif /* __rtems__ */
 
 /*
  * note: currently use SWAPBLK_NONE as an absolute value rather then 




More information about the vc mailing list