From 28759d0e95cff70df9e4db319e0bcf310fbe7197 Mon Sep 17 00:00:00 2001 From: Alex Samorukov Date: Mon, 4 Jan 2021 01:25:48 +0100 Subject: Fix mknod compilation on the FreeBSD is linux-only FreeBSD defines makedev in sys/types.h already included in the libbb.h. Signed-off-by: Alex Samorukov Signed-off-by: Denys Vlasenko --- coreutils/mknod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'coreutils') diff --git a/coreutils/mknod.c b/coreutils/mknod.c index eee0ac71d..b10fe4fc3 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c @@ -36,7 +36,9 @@ //usage: "$ mknod /dev/fd0 b 2 0\n" //usage: "$ mknod -m 644 /tmp/pipe p\n" -#include // For makedev +#ifdef __linux__ +# include // For makedev +#endif #include "libbb.h" #include "libcoreutils/coreutils.h" -- cgit v1.2.3