Error compiling xfsprogs on macOS (asm/types.h not found)


I am trying to build an openwrt image for my MX65 router but I am stuck on getting xfsprogs-5.9.0 compiled on macOS 13.4 (M2 Proc).
I am getting this error:

make[3]: Entering directory '/Volumes/OpenWrt/openwrt/build_dir/target-arm_cortex-a9_musl_eabi/xfsprogs-5.9.0'
   [HEADERS] include
   [HEADERS] libxfs
Building include
Building libfrog
    [TEST]    CRC32
crc32.c:33:10: fatal error: 'asm/types.h' file not found
#include <asm/types.h>
1 error generated.
gmake[5]: *** [Makefile:76: crc32selftest] Error 1
gmake[4]: *** [include/buildrules:36: libfrog] Error 2
make[3]: *** [Makefile:91: default] Error 2
make[3]: Leaving directory '/Volumes/OpenWrt/openwrt/build_dir/target-arm_cortex-a9_musl_eabi/xfsprogs-5.9.0'
make[2]: *** [Makefile:98: /Volumes/OpenWrt/openwrt/build_dir/target-arm_cortex-a9_musl_eabi/xfsprogs-5.9.0/.built] Error 2
make[2]: Leaving directory '/Volumes/OpenWrt/openwrt/feeds/packages/utils/xfsprogs'
time: package/feeds/packages/xfsprogs/compile#0.24#0.16#0.43
    ERROR: package/feeds/packages/xfsprogs failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/xfsprogs/compile] Error 1
make[1]: Leaving directory '/Volumes/OpenWrt/openwrt'
make: *** [/Volumes/OpenWrt/openwrt/include/ package/feeds/packages/xfsprogs/compile] Error 2

Any idea how to solve this?