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:
parent
09aba8bac4
commit
28759d0e95
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user