darwin.network_cmds: drop x86_64-darwin support

This commit is contained in:
Emily
2026-02-18 05:07:10 +00:00
parent 98dd6b587f
commit 0fef4fe6d3

View File

@@ -32,17 +32,16 @@ let
'${xnu}/libkern/firehose/firehose_types_private.h' \
'${xnu}/libkern/firehose/tracepoint_private.h'
for dir in arm i386 kern machine; do
for dir in arm kern machine; do
mkdir -p "$out/include/$dir"
for file in '${xnuHeaders}/include/'$dir/*; do
name=$(basename "$file")
# Skip copying `endian.h` because it conflicts with the SDK, breaking the build on x86_64-darwin.
# Skip copying `endian.h` because it conflicts with the SDK, breaking the build.
test "$name" != endian.h && cp -r "$file" "$out/include/$dir/$name"
done
done
unifdef -x 1 -DKERNEL_PRIVATE -o "$out/include/arm/locks.h" '${xnu}/osfmk/arm/locks.h'
unifdef -x 1 -DKERNEL_PRIVATE -o "$out/include/i386/locks.h" '${xnu}/osfmk/i386/locks.h'
install -D -t "$out/include/net" \
'${xnuHeaders}/include/net/bpf.h' \