summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-27 09:07:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-27 09:13:54 +0100
commit8d5fc9d52ad34a664420b98c253375b1e62d0090 (patch)
treec51a776e19c2e5cb79e0146fc09ca8ab8d852778
parentUpdate to FreeBSD head 2018-11-15 (diff)
downloadrtems-libbsd-8d5fc9d52ad34a664420b98c253375b1e62d0090.tar.bz2
blist: Fix u_daddr_t for 32-bit targets
The daddr_t is defined in <sys/types.h> by Newlib as long.
-rw-r--r--freebsd/sys/sys/blist.h4
1 files changed, 4 insertions, 0 deletions
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