Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame^] | 1 | Define daddr_t if __DADDR_T_TYPE is not defined |
| 2 | |
| 3 | glibc defined daddr_t but musl does not, ideally it should not be used |
| 4 | and simple int type is enough. However, its better to leave glibc behavior |
| 5 | as it is and only define it to int if daddr_t is not provided by libc |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- a/stress-ng.h |
| 11 | +++ b/stress-ng.h |
| 12 | @@ -3750,6 +3750,10 @@ struct shim_statx { |
| 13 | uint64_t __spare2[14]; |
| 14 | }; |
| 15 | |
| 16 | +#ifndef __DADDR_T_TYPE |
| 17 | +typedef int daddr_t; |
| 18 | +#endif |
| 19 | + |
| 20 | /* old ustat struct */ |
| 21 | struct shim_ustat { |
| 22 | daddr_t f_tfree; |