kernel: fix build issue on macOS
authorFelix Fietkau <nbd@nbd.name>
Sat, 30 Mar 2024 20:58:31 +0000 (21:58 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 30 Mar 2024 20:59:24 +0000 (21:59 +0100)
commit0cb3e86557fe17824283224b711fe7394590c680
tree2e55e73cd32666d3f397342fe3890ab6800c93ab
parent0c96d20bf9fba6d814efa88c6fb08a5df094103a
kernel: fix build issue on macOS

On x86, the build failed while trying to compile tools/lib/string.c because
of a clash with the system provided implementation for strlcpy
Add ifdefs to prevent the conflict.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/hack-6.1/212-tools_portability.patch