Fix mknod compilation on the FreeBSD

<sys/sysmacros.h> is linux-only
FreeBSD defines makedev in sys/types.h already included in the libbb.h.

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Alex Samorukov 2021-01-04 01:25:48 +01:00 committed by Denys Vlasenko
parent 09aba8bac4
commit 28759d0e95

View File

@ -36,7 +36,9 @@
//usage: "$ mknod /dev/fd0 b 2 0\n" //usage: "$ mknod /dev/fd0 b 2 0\n"
//usage: "$ mknod -m 644 /tmp/pipe p\n" //usage: "$ mknod -m 644 /tmp/pipe p\n"
#ifdef __linux__
# include <sys/sysmacros.h> // For makedev # include <sys/sysmacros.h> // For makedev
#endif
#include "libbb.h" #include "libbb.h"
#include "libcoreutils/coreutils.h" #include "libcoreutils/coreutils.h"