From 8d5fc9d52ad34a664420b98c253375b1e62d0090 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 27 Nov 2018 09:07:53 +0100 Subject: blist: Fix u_daddr_t for 32-bit targets The daddr_t is defined in 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 595d3477..1e6deb52 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 -- cgit v1.2.3