Skip to content

Commit

Permalink
readmmap.c: fix building with MUSL libc
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Zach Dykstra <[email protected]>
Closes openzfs#15130
  • Loading branch information
zdykstra authored and behlendorf committed Aug 1, 2023
1 parent 4a104ac commit 876a062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/zfs-tests/cmd/readmmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <fcntl.h>
#include <errno.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <time.h>

int
Expand Down

0 comments on commit 876a062

Please sign in to comment.