mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 02:42:09 +08:00
blist: Fix u_daddr_t for 32-bit targets
The daddr_t is defined in <sys/types.h> by Newlib as long.
This commit is contained in:
parent
e0b4edbdcc
commit
8d5fc9d52a
@ -58,7 +58,11 @@
|
|||||||
#ifndef _SYS_BLIST_H_
|
#ifndef _SYS_BLIST_H_
|
||||||
#define _SYS_BLIST_H_
|
#define _SYS_BLIST_H_
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
typedef uint64_t u_daddr_t; /* unsigned disk address */
|
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
|
* note: currently use SWAPBLK_NONE as an absolute value rather then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user