commit: 3b6dab3404ad6029f794a0251e86d06a8b3b1cf9
parent 2a893bb9cf730febb3b3f22ff95d7525606386e3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 21 Apr 2024 04:31:37 +0200
configure: Disable cmd/mknod if <sys/sysmacros.h> doesn't exists
Such as both FreeBSD and NetBSD.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
@@ -244,6 +244,11 @@ if ! check_header mntent.h; then
echo 'cmd/df' >> target_filter
fi
+if ! check_header sys/sysmacros.h; then
+ echo 'Disabling cmd/mknod'
+ echo 'cmd/mknod' >> target_filter
+fi
+
if check_conftest configure.d/splice.c; then
CFLAGS="${CFLAGS} -DHAS_SPLICE"
fi