HomeFreeBSD

readmmap.c: fix building with MUSL libc

Description

readmmap.c: fix building with MUSL libc

glibc includes sys/types.h from stdlib.h. This is not the case for MUSL,
so explicitly include it. Fixes usage of uint_t.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Zach Dykstra <dykstra.zachary@gmail.com>
Closes #15130

Details

Provenance
Zach Dykstra <dykstra.zachary@gmail.com>Authored on Aug 1 2023, 4:01 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 2 2023, 3:53 PM
Parents
rGb5e245633369: Check the return value in clonefile test
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb3c1807d776c: readmmap.c: fix building with MUSL libc (authored by Zach Dykstra <dykstra.zachary@gmail.com>).Aug 2 2023, 3:53 PM