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 <behlendorf1@llnl.gov>
Signed-off-by: Zach Dykstra <dykstra.zachary@gmail.com>
Closes #15130
  • Loading branch information
zdykstra committed Aug 1, 2023
1 parent 114a399 commit fcd61d9
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 fcd61d9

Please sign in to comment.