← Commit list

28759d0e9

Alex Samorukov
Alex Samorukov
2021-01-04
SUCCESS Duration: 293s

Subject

Fix mknod compilation on the FreeBSD

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

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